[Kss-devel] problem with enforce_unicde
Gerhard Weis
gweis at gmx.at
Mon Jul 13 03:38:07 CEST 2009
Hi,
I am using utf-8 as system default character encoding in python. The
enforce_unicode method in module kss.core.unicode_quirks assumes
by default ascii encoding, which causes every now and then
UnicodeDecodeErrors in my plone-site.
I attached a small patch which passes sys.getdefaultencoding() as
default parameter to enforce_unicde. Works fine here.
The patch is against kss.core/branch/1.4.
Tests with the patch applied to version 1.4.7 run fine too.
Kind Regards,
Gerhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: system_defaultencoding.patch
Type: text/x-patch
Size: 612 bytes
Desc: not available
Url : http://codespeak.net/pipermail/kss-devel/attachments/20090713/1a128450/attachment.bin
More information about the Kss-devel
mailing list