Re: AW: PyDS RPC fix

Georg Bauer <gb-BRhJDZTO+/[email protected]> Mon, 10 Jan 2005 08:41:37 +0100
Newsgroups gmane.comp.pythin.pyds.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

> Do you know what utf- format Python uses internally?  I think Windows
> NT uses utf-16, but I'm not an expert here.  It would always be

Presumeably Python does something similar - either use widechar (but 
that would result in not being able to store all Unicode chars, as 
Unicode is more then 16bit) or utf-16. It could use 32-bit chars, but I 
don't think so.

But nonetheless, to write something out in Python - regardless of where 
you write it - you have to encode it in some 8bit string by either 
using utf-8 or some other means. You could pickle Unicode strings, but 
that would use some form of encoding, too - it would only make the 
whole stuff more insecure :-)

> think I'd want that in PyCS when everything gets into Postgres as
> being able to just come in with the admin tool and be able to read
> everything is very useful...

Of course we should stay with utf-8 (or the 8bit encodings for 
situations where those are sufficient). Everything else would be rather 
insane. And not be well supported in Python, anyway.

bye, Georg
- -- 
gpg Key unter http://hugo.muensterland.org/gems/gbauer.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFB4jGxF23K68kpzdoRAnlAAJ0cKL3InZdVRUR4Zedx+Qnjh6Ug0ACdGdlw
O93JIgFu5p6w7oWbjeY2A78=
=o5DU
-----END PGP SIGNATURE-----