editing in Unicode
Roland Mas
mas at echo.fr
Thu Sep 7 08:33:10 EDT 2000
Bertilo Wennergren (2000-09-07 12:49:10 +0200) :
> > msg=unicode("@#&", "UTF8")
>
> If I get this right the following simpler version ought to work:
>
> msg=unicode("@#&")
Sounds right to me.
> What about using this:
>
> msg = u'@#&'
Hmm. Not sure, since you would have to explicitly state somewhere
that the "argument" to the u'' construct has to be considered as
encoded in UTF-8. Why UTF-8 and not -16, or Latin-1 or something
else?
Roland.
--
Roland Mas
() Campagne du ruban ascii :
/\ Contre les mails en HTML et les vcard !
More information about the Python-list
mailing list