New Zenner
- Join Date:
- May 2007
- Posts:
- 6
- Plugin Contributions:
- 0
php email not sending out with correct character set
Hello, supportive fellow members,
I have a serious encoding problem since my server host upgraded the PHP version from 4.4.4 to 4.4.6.
I use both English and Japanese and had no problem until this upgrade happened.
Now all the notification emails sent to customers/admin in Japanese are garbled.
The hosting company (Bluehost) said;
"This is a known issue with our servers. We are working to resolve this. Below is a temporary fix. In the meantime, you can fix your immediate concerns by overriding php's mail() function, to encode the emails to a given character set. You can add the following to your php.ini, to do this:
mbstring.language = Neutral
mbstring.internal_encoding = UTF-8
mbstring.http_input = UTF-8
mbstring.http_output = UTF-8
mbstring.encoding_translation = On
mbstring.detect_order = auto
mbstring.substitute_character = long;
mbstring.func_overload = 1If this does not resolve the issue, contact the maker of your script, and confirm what settings you may need to add as the subject and body may be encoded differently."
Our default charset is "EUC-JP". So I edited php.ini as follows;
output_buffering = Off
default_charset = EUC-JP
mbstring.language = Japanese
mbstring.encoding_translation = On
mbstring.http_input = auto
mbstring.http_output = EUC-JP
mbstring.internal_encoding = EUC-JP
mbstring.substitute_character = none
mbstring.func_overload = 1
But it didn't solve the problem. :no:
It's been more than 6 weeks and hosting company provide us no other solution. We are losing customers.... Will anyone please help me....?? Is there anything else I can do by editing the script?
I'm not a PHP expert and not a native English speaker, but I can follow the instructions and willing to do anything I can do to solve this. Thanks,
ZenCart ver 1.3.6