[Date Prev][Date Next]
Re: Problems with case folding of UTF-8
Stig Venaas wrote:
> adding new entry "cn=Stig VenÃ¥s, dc=my-domain,dc=com"
Well, you have to tell us that this string is improperly interpreted
as ISO-8859-1 by your xterm. Otherwise it's meaningless. ;-)
> The DN in base64 is Y249U3RpZyBWZW7DpXMsIGRjPW15LWRvbWFpbixkYz1jb20
Are you sure about that being properly base64-encoded?
Python 2.1.1 (#5, Nov 18 2001, 17:07:23)
[GCC 2.95.2 19991024 (release)] on linux2
>>> import base64
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.1/base64.py", line 47, in decodestring
File "/usr/lib/python2.1/base64.py", line 31, in decode
s = binascii.a2b_base64(line)
binascii.Error: Incorrect padding
> Ã¥ is å (a with circle above), and should still be one character
> when normalized (still 2 characters in UTF-8).
For your records Python's UTF-8 encoding: