[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: UTF-8 & internationalization



At 03:23 PM 2002-01-08, Alvin Wong wrote:
>OpenLDAP: 2.0.19
>OS: Windows NT
>Server: OpenLDAP 2.0.19 slapd
>Client: OpenLDAP 2.0.19 C API
>
>Hi All,
>
>I'm trying to setup an LDAP which has values in different languages,
>i.e. English, Chinese, French, etc. I encoded the values in UTF-8 and am
>currently having some problems when I try to search for certain entries.
>Specifically, I encoded Chinese characters in UTF-8 and when I have odd
>number of Chinese characters as the value, it fails while it succeeds if
>it is even.

That sounds odd.  You might try posting a sample LDIF so folks
can see what you are doing.

>Another thing is that I did not encode the attribute names
>as they are in English.

That's not a good idea.  Attribute names in the protocol are
restricted to a small subset of Unicode.  

>Am I doing this the wrong way?

The right way would be for the application to map the
attribute names to something more meaningful.

>Are there more
>stuff I should be looking at? Thanks in advance for any help.
>
>-Alvin