On Tue, Oct 09, 2001 at 09:23:14PM +0100, Adam Nealis wrote:
>  --- Claudio Jeker <[EMAIL PROTECTED]> wrote: 
> > On Sun, Oct 07, 2001 at 04:57:48PM +0800, wind wrote:
> > > How to insert into values except English (Chinese) in openldap.
> > > I want use Chinese mailReplyText , what can i do��
> > > 
> > 
> > You have to encode it as if it where a standart mail.
> > Probably you need to add a content type and/or mimetype (in other words a
> > pseudo header) to the mailReplyText.
> 
> Just occurred to me that the kosher way to get, say, newlines
> into an LDAP field is to base64-encode it. Would that have a
> use as a work around for jamming any character set into a
> field?
> 
Yes and no. The main problem is that mail is not everywhere 8bit clean and
therefor you need an encoding for non ascii chars. And chinese uses 16bit
chars which makes it even worse. When you use ldapmodify|ldapadd as I said
earlier and use a file as source for the mailReplyText ldapadd|ldapmodify
will base64-encode the file.
It is true that you have to base64 mailReplyText that have a newline char
in them.

-- 
:wq Claudio

Reply via email to