[Date Prev][Date Next]
Re: Chinese problem in the ldif files.
Wang Penghui <firstname.lastname@example.org> writes:
> Dieter Kluenter wrote:
>>Wang Penghui <email@example.com> writes:
>>>I want to know how the encoding and decoding works when the data input
>>>/output the LDAP servers.
>>>And wheather or not it have some problems in dealing with chinese words?
>>>My server is OpenLDAP 2.1.26 on gentoo linux.
>>You have to encode your chinese to UTF-8 not base64.
>>/usr/bin/iconv -l will give you all known languages and
>>iconv -f BIG-5 -t utf-8 -o utf-8-output.ldif big-5-input.ldif
>>will convert your ldif file.
> But my ldif files were already encoded with utf-8
Then it is up to your client to decode the base64 encoded UTF-8
string. With the output of ldapsearch in an xterm you may use the tool
mmencode which reads from standard input.
Dieter Kluenter | Systemberatung
Tel:040.64861967 | Fax: 040.64891521