Jump to content

UTF-8 or Japanese mail


anatak

Recommended Posts

Hello,

 

I am trying to send emails to cellphones in Japan. I thought that UTF-8 encoding would work but I keep running into problems.

 

Here is what happens so far

I am sending a message from a form

-Mozilla does not recognize the mail as an UTF-8 mail but when I manually set the encoding to UTF-8 the message is displayed correctly

-My cellphone does not recognize the mail as an UTF-8 mail and all the Japanese characters are dropped. The western characters are displayed correctly. Manually setting the encoding to UTF-8 does not help.

 

anyone any ideas what may be the problem ?

I am going to try to test it on phones from different companies.

Link to comment
https://forums.phpfreaks.com/topic/114601-utf-8-or-japanese-mail/
Share on other sites

Not sure about cell phones, but I use forms and php mail on some Japanese pages. I had a hard time getting the charcter set to work properly until I discovered this:

 

First, go to sourceforge and download jcode.php Here's the link http://tinyurl.com/6ocktn

 

Then set your form out like this:

 

Edit: I'll have to post this code as a picture because the character set of this forum won't display Japanese correctly. See 'code_4_jpemails.jpg'

 

Edit 2: That funnly looking character at the end of the lines in the mail function that looks kinda like "yn", is actually "\n", it just doesn't display correctly using the Osaka charater set in the html editor

 

If you don't lay it out like the above, you will have problems. Similarly, if you don't layout the Subject like the above:

 

'$subject = "=?ISO-2022-JP?B?". base64_encode(JcodeConvert($subject, 2, 3)). "?=";'

 

Hope this helps you. For certain this posts emails from forms in Japanese charcters, I'm not sure about cell phones though

 

[attachment deleted by admin]

the major problem with the cellphones is that every carrier has a different way of doing things.

That is why I wanted to try it in UTF-8 also because I need also support for French and some other languages.

but the picture gave me some ideas I ll try.

 

thanks

 

the weird thing is that it used to work in a previous version of the site.

 

So I was going through the code changes but now I can't get it to work anymore in the old version neither.

Would it be possible that changing from php 4 to 5 broke something ?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.