some questions concerning UNICODE conversion in Python
June Kim
junaftnoon at nospamplzyahoo.com
Wed Nov 8 07:06:48 EST 2000
I missed one important thing, sorry.
Suppose that sys.getdefaultencoding() == 'XYZ'. (imaginary encoding)
u'abc'
what it does is translate 'abc', which is encoded in XYZ, into UNICODE.
Am I right on this?
(suffering from understanding the very basic ideas)
"June Kim" <junaftnoon at nospamplzyahoo.com> wrote in message
news:8ubf0m$8oi$1 at news.nuri.net...
> What's the difference btw these two and what are the semantics?
>
> >>> u'blah blah blah <and some special characters>'
> ....
> >>> unicode('blah blah blah <and some special characters>')
>
> Thanks in advance.
>
>
>
>
More information about the Python-list
mailing list