[clug] python unicode question
Michael Cohen
michael.cohen at netspeed.com.au
Mon Dec 8 08:49:20 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thanks Martin,
That really cleared things up for me. Sorry I might have sounded a little
shirty about python at the time, i really like python but i was spending too
long trying to figure that unicode stuff out.
This really jelled it in for me:
> Normally you want to
> do all your internal processing on Unicode objects and translate
> to/from an encoding at the point of i/o.
>
> Remember decode is for input, bytes -> unicode and encode is for
> output, unicode->bytes.
Thanks for your help it all works nicely now.
Michael.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/1DsWZMnBgI6aclcRAq7nAKDmFbMUD5Y6GuavSEHMMFyBzRxYJQCfSKgo
0wrZzbyXSC6cTlxzeC1FH7k=
=/5Tf
-----END PGP SIGNATURE-----
More information about the linux
mailing list