From: Roger B. <ro...@ro...> - 2004-04-27 07:05:26
|
In one file, it turns out that Paramiko (the Python SSH2 implementation) that we use needs to process UTF8 data. The Python encodings are used to get that. It turns out that neither py2exe or cx_Freeze include the encodings package by default (it is fairly large and usage of it is almost impossible to detect). BundleBuilder may not include it either. Sadly it all falls over on Linux even after telling cx_Freeze to include encodings and encodings.utf_8. (The issues are to do with how Python was built and UCS2 vs UCS4). Consequently I am to use some seperate code to do conversion to and from UTF-8 rather than fight the encodings package. Plan B may be to upgrade to Python 2.3 on Redhat 9 instead and see if that fixes it. Anyway if anyone has any thoughts, or pointers to freely licensed Python UTF-8 code that has been debugged and tested, I would appreciate it. Anyway, it is my bedtime ... Roger |