[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Chinese display garbled
- To: openldap-technical@openldap.org
- Subject: Re: Chinese display garbled
- From: Dieter Klünter <dieter@dkluenter.de>
- Date: Thu, 5 Feb 2015 12:56:46 +0100
- In-reply-to: <046c01d04135$521b5720$f6520560$@thundersoft.com>
- Organization: AVCI
- References: <046c01d04135$521b5720$f6520560$@thundersoft.com>
Am Thu, 5 Feb 2015 19:17:25 +0800
schrieb "Tian Zhiying" <tianzy1225@thundersoft.com>:
> Hello
>
>
>
>
>
> My ldif file type is UTF-8 as below.
>
> # file test.ldif
>
> test.ldif: UTF-8 Unicode text
>
>
>
> The test.ldif content includes Chinese, as below:
>
> # cat test.ldif
>
> dn: cn=行政部,ou=domain,dc=domain,dc=com
>
> cn: 行政部
>
> gidnumber: 500
>
> objectclass: posixGroup
>
>
>
> I can add it to the LDAP server. Then excuting this command “#
> ldapsearch -x -H ldap://localhost -b dc=domain,dc=com” , it display
> as below:
>
>
>
> # \E7\94\B0\E5\BF\97\E8\8B\B1, domain, domain.com
>
> dn::
> Y24955Sw5b+X6IuxLG91PXRodW5kZXJzb2Z0LGRjPXRodW5kZXJzb2Z0LGRjPWNvbQ==
>
> cn:: 55Sw5b+X6Iux
>
> gidNumber: 500
>
> objectClass: posixGroup
>
> objectClass: top
>
This is just the base64 encoded DN string, decoded it is
cn=田志英,ou=thundersoft,dc=thundersoft,dc=com
-Dieter
--
Dieter Klünter | Systemberatung
http://sys4.de
GPG Key ID: E9ED159B
53°37'09,95"N
10°08'02,42"E