http://bugs.gpodder.org/show_bug.cgi?id=57





--- Comment #27 from Nick <[EMAIL PROTECTED]>  2008-12-10 01:46:11 ---
Found the problem. On maemo the encoding defaults to iso-8859-15 because the
$LANG variable is set to en_US (at least for me), on my Fedora box it's set to
en_US.utf8.

So what happens when you run: u'ยป'.encode('iso-8859-15').encode('iso-8859-15')
?

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/encodings/iso8859_15.py", line 12, in encode
UnicodeDecodeError: 'utf8' codec can't decode byte 0xbb in position 0:
unexpected code byte

In podcastChannel.get_save_dir(), util.sanitize_filename() is called twice on
the same string which is why this error occurs. It takes a perfectly good
unicode string and attempts to convert it to iso-8859-15. The solution for me
was to set the default encoding to utf8. Is there a reason why we can't always
use this?

More importantly, I can't figure out how to prevent this error. Passing
'ignore' or 'replace' to encode() does nothing...


-- 
Configure bugmail: http://bugs.gpodder.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
gPodder-Bugs mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-bugs

Reply via email to