data encoding for Python COM interface

News M Claveau /Hamster-P essai1 at mci.local
Mon Sep 29 18:28:02 EDT 2003


Hi !

In other environment (windows + Paradox/objectPal +COM-python-script), i do
:

    import locale
    CodingParDefaut = locale.getpreferredencoding()

         def  XYZ(self, argu):        # public method
                chaineretour = argu.encode(CodingParDefaut))
                return chaineretour

This work  (encode in entry to COM-python  nothing at return).
Perhaps can you find in an idea ?


* sorry for my bad english *


@-salutations
-- 
Michel Claveau






More information about the Python-list mailing list