Stupid Python
chymax$ python -V Python 2.5.1 chymax$ python -c 'print u"\xA9";' © chymax$ python -c 'print u"\xA9";' >/dev/null Traceback (most recent call last): File "<string>", line 1, inUnicodeEncodeError: 'ascii' codec can't encode character u'\xa9' in position 0: ordinal not in range(128) chymax$ locale LANG= LC_COLLATE="C" LC_CTYPE="en_GB.utf-8" LC_MESSAGES="C" LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_ALL="C/en_GB.utf-8/C/C/C/C"
no subject
This seems to restore things to sanity, though I'm not convinced I've got the decode nonsense right (however, it works for me):
no subject
no subject
'UTF-8'
withlocale.getpreferredencoding()
(not tested).