Dear All,

I have the same problem on qmail-reply .

I use php to make a form that can let user use their personal mailreplytext.
But I cannot save chinese word to openldap database. So, I try to use php function base64_encode() and base64_decode() in my php code.

Like that:

mailReplyText update function()
$newreplytext = base64_encode($_POST['replytext']);
$add_attribs[$mailreplytext_field] = array("$newreplytext");
$result = ldap_modify($ds,$dn,$add_attribs);

User php form
$val1 = @ldap_get_values($ds,$info,$mailreplytext_field);
<textarea rows=8 cols=50 name=replytext>' . base64_decode($val1[0]) .'</textarea>

This is work for me.

But, the problem is,  qmail-reply send reply email without decode from base64.

So, the Sender will see the following messages:

tPq41Q==

I know ldap will store the value using UTF8 format.
But, I don't know how to make the Sender recieve the correct reply messages in chinese word(double bytes).

Can anybody show me the light?
Thanks a lot.

chuany

Reply via email to