[XML-SIG] Re: Issues with Unicode type
Daniel Veillard
veillard@redhat.com
Mon, 23 Sep 2002 18:51:21 -0400
On Mon, Sep 23, 2002 at 04:10:52PM -0600, Jeremy Kloth wrote:
> However that is really two characters 0x1080 and 0x0030. \u (lowercase)
> only takes 4 hex digits. \U (uppercase) takes 8 digits. So to create the
> character 0x10800, the sequence should be u'\U0010800'.
Oops, my bad, I just tried to reproduce Eric's problem case
> To truly see if Python has wide unicode support:
>
> import sys
> print sys.maxunicode
>
> if the result is >65536, then it was compiled with "--enable-unicode=ucs4",
> which the RPM spec file for python 2.2.1 does use.
7.3:
paphio:~ -> python2.2
Python 2.2 (#1, Apr 12 2002, 15:29:57)
[GCC 2.96 20000731 (Red Hat Linux 7.2 2.96-109)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.maxunicode
1114111
>>>
latest:
gnome:~ -> python
Python 2.2.1 (#1, Aug 30 2002, 12:15:30)
[GCC 3.2 20020822 (Red Hat Linux Rawhide 3.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.maxunicode
65535
>>>
Hum, maybe you should not count on it :-\
aniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/