[Python-Dev] 2.2 Unicode questions
M.-A. Lemburg
mal@lemburg.com
Fri, 20 Jul 2001 18:49:04 +0200
Andrew Kuchling wrote:
>
> On Fri, Jul 20, 2001 at 06:39:30PM +0200, M.-A. Lemburg wrote:
> >Same here: UTF-16 -> UCS-2. Note that I very much favour
> >removing the surrogate generation in unichr() for UCS2-builds.
>
> Do I understand the new behavior you intend to implement?
> * Narrow Python: unichr() accepts values from 0 .. 65535. len(unichr(x))
> is always 1.
> * Wide Python: unichr() accepts values from 0 .. 0x110000. len(unichr(x))
> is also always 1.
Right.
--
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting: http://www.egenix.com/
Python Software: http://www.lemburg.com/python/