some questions concerning UNICODE conversion in Python

June Kim junaftnoon at
Wed Nov 8 13:06:48 CET 2000

I missed one important thing, sorry.

Suppose that  sys.getdefaultencoding() == 'XYZ'. (imaginary encoding)


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> wrote in message
news:8ubf0m$8oi$1 at
> 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