Unicode coercion not the same as ASCII

A.M. Kuchling amk at mira.erols.com
Sun Dec 10 10:57:35 EST 2000


On Sat, 09 Dec 2000 14:12:04 +0000, 
	Dale Strickland-Clark <dale at out-think.NOSPAMco.uk> wrote:
>To get a number represented as a Unicode string, do I really need to do this?
>
>>>> unicode(str(123))
>u'123'

At the moment, yes, though there has been some discussion of a
unistr() function on python-dev.  I don't remember the issues that
make it non-trivial, so I'd recommend you hunt through the python-dev
archives for the details.

--amk




More information about the Python-list mailing list