Python wide-python-build unicode for Windows

Terry Reedy tjreedy at udel.edu
Fri Apr 29 15:38:48 EDT 2011


On 4/29/2011 7:52 AM, satheesh at e-ndicus.com wrote:

> How could i increase the unicode range beyond 10000 ?

Use Python3, which, after renaming unichar to chr, changed it to always 
accept the full range of codepoints, even when that means returning a 
two-char string on narrow builds, like windows.
 >>> chr(0x10FFFF)
'\U0010ffff'
 >>> len(chr(0x10FFFF))
2

If OpenERP does not have a 3.x version, encourage them to make one to 
take advantage of the unicode improvements. Tell them the use case, that 
you want to use the full range, even on windows.

Or file a bug report requesting a workaround in the 2.x version.

-- 
Terry Jan Reedy




More information about the Python-list mailing list