[wp-hackers] Forum Post
Ryan Boren
ryan at boren.nu
Wed Oct 13 19:47:07 UTC 2004
> The problem seems to be with mb_send_mail's choice of language/encoding.
>
> I got the password reset email in a readable format by
>
> a) using only mail() by removing the mb_send_mail
> AND
> b) by setting the language mb_language('English'); before the call to
> mb_send_mail().
Aren't we all using UTF-8 like good boys and girls? :-)
We can do this. If the blog charset is ISO-8859-1 we set mb_language to
"en". If it's ISO-2022-JP we set "ja". If it's UTF-8 (ding, ding, right
answer) we set "uni". Otherwise, we don't touch mb_language. If people
are using other character sets, they're out of luck no matter what we do.
Ryan
More information about the hackers
mailing list