Here is another workaround. You don't have to change any code in
ljcharm.py at all.

For Debian unstable and python2.6 edit the
file /usr/lib/python2.6/sitecustomize.py

and change the default encoding to your system locale, in my case utf-8.

# sitecustomize.py
# this file can be anywhere in your Python path,
# but it usually goes in ${pythondir}/lib/site-packages/
import sys
sys.setdefaultencoding('UTF-8')


So whenever charm fails to detect the right encoding, python falls
back to utf-8. 

see also http://diveintopython.org/xml_processing/unicode.html



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to