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

Chinese display garbled



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

 

How can I deal with it? Can you help me?

 

Thanks!!!