Re: AW: PyDS RPC fix

Phillip Pearson <[email protected]> Mon, 10 Jan 2005 14:50:08 +1300
Newsgroups gmane.comp.pythin.pyds.devel
Message-ID <[email protected]>
> >And best solution is store texts as unicode, not utf-8! But this
> >will be hard work. ;)
> 
> You can't store unicode strings - to store them you will allways have to
> encode them somehow. And that encoding is either iso-8859-1 if you don't
> need unicode strings or utf-8. There are other unicode encodings (utf-16 and
> utf-32 and some more obscure onese), but those aren't supported in most
> librarties. utf-8 is the best choice there is. Unicode strings in Python can
> only exist during runtime. There is no way to store them directly without
> encoding them (even pickling will do some encoding first).

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
possible to switch to utf-16 instead of utf-8, but that would be a
pain, and it would be harder to manually look at databases.  I don't
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...

Cheers,
Phil