unicode patch (for files starting with BOM)

Stefan Kloe stefan.kloe at googlemail.com
Tue Oct 16 12:55:26 EDT 2007


Hi,

I was irritated by pydance not loading some of my favorite songs and after a
little debugging and learning of the python way of development I created
this little patch.

The method loading the files now checks if the first line contains a BOM and
decodes every line of  these files. Other files are handled as before. The
only dirty lines of code do the removing of the BOM which is only necessary
with utf_8 encoding.

Best regards,
Steven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/pyddr-devel/attachments/20071016/7af6d52c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: utf-encoding.patch
Type: text/x-patch
Size: 2669 bytes
Desc: not available
URL: <http://icculus.org/pipermail/pyddr-devel/attachments/20071016/7af6d52c/attachment.bin>


More information about the pyddr-devel mailing list