What's new

Welcome to Japan Reference (JREF) - the community for all Things Japanese.

Join Today! It is fast, simple, and FREE!

PHP Mojibake! Help!

omcat

Kouhai
Joined
1 Jul 2003
Messages
5
Reaction score
0
I'm making a bilingual English/Japanese website at the moment.
I'm using a PHP mail form in a 'Contact Us' area that works fine in English.

For the Japanese version, I'm sending the mail using mb_send_mail and setting the language to Japanese using mb_language("ja").

The message arrives in the email client in Japanese no problem but the sender's name and the header arrive as garbled alphabetical characters.
Any ideas??? Trying to fix this is driving me maaaaaaaad.
 

kinjo

Sempai
Joined
15 Mar 2002
Messages
4,835
Reaction score
31
I'm not familiar with the function, do you have to use the function on all the submitted variables?

You should try that.
 

Enfour

先輩
Joined
13 May 2003
Messages
76
Reaction score
0
You need to make sure the encoding you have set to receive on your mail client is the same as the enocoding you have used in the PHP.

Perhaps it is your receiving mail client and not your web-site.
 
Top Bottom