encoding
Martin Pool
mbp at sourcefrog.net
Mon Apr 4 14:10:10 BST 2005
On Mon, 2005-04-04 at 14:58 +0200, Szekeres István wrote:
> > Always use UTF8? Suggestions welcome.
>
> encoding = locale.getpreferredencoding()
> s=unicode('some string with local accents in it', encoding)
>
> on my system this seems to do the job correctly.
Yes, but it just seems wrong to have to write that by hand on everything
that deals with the outside world. I suppose that's what I have to do.
--
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050404/5a524306/attachment.pgp
More information about the bazaar
mailing list