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

Re: 答复: Chinese display garbled



Tian Zhiying wrote:
> How can I display chinese in LDAP database, rather than a base64 code?

Actually the attribute values with LDAP syntax DirectoryString are stored as
UTF-8 encoded Unicode. When a client retrieves those via LDAP it will receive
the UTF-8 encoding.

But LDIF mandates that every non-ASCII attribute value is formatted with
double-colon base64 [1].

Ciao, Michael.

[1] http://tools.ietf.org/html/rfc2849

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature