anatak Posted July 14, 2008 Share Posted July 14, 2008 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 More sharing options...
realjumper Posted July 14, 2008 Share Posted July 14, 2008 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] Link to comment https://forums.phpfreaks.com/topic/114601-utf-8-or-japanese-mail/#findComment-589281 Share on other sites More sharing options...
anatak Posted July 14, 2008 Author Share Posted July 14, 2008 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 Link to comment https://forums.phpfreaks.com/topic/114601-utf-8-or-japanese-mail/#findComment-589286 Share on other sites More sharing options...
realjumper Posted July 14, 2008 Share Posted July 14, 2008 Okay, good luck....the Japanese 2 byte character set caused me all sorts of problems until I found this cure. utf-8 just wouldn't work Link to comment https://forums.phpfreaks.com/topic/114601-utf-8-or-japanese-mail/#findComment-589287 Share on other sites More sharing options...
Third_Degree Posted July 14, 2008 Share Posted July 14, 2008 when mailing, try sending the following header Content-Type: text/html; charset=utf-8 Link to comment https://forums.phpfreaks.com/topic/114601-utf-8-or-japanese-mail/#findComment-589291 Share on other sites More sharing options...
realjumper Posted July 14, 2008 Share Posted July 14, 2008 when mailing, try sending the following header Content-Type: text/html; charset=utf-8 Been there, done that....won't work! Link to comment https://forums.phpfreaks.com/topic/114601-utf-8-or-japanese-mail/#findComment-589292 Share on other sites More sharing options...
Third_Degree Posted July 14, 2008 Share Posted July 14, 2008 when mailing, try sending the following header Content-Type: text/html; charset=utf-8 Been there, done that....won't work! Ok haha well I've never tried sending mail to Japan. I gave it my best shot... Link to comment https://forums.phpfreaks.com/topic/114601-utf-8-or-japanese-mail/#findComment-589300 Share on other sites More sharing options...
anatak Posted July 14, 2008 Author Share Posted July 14, 2008 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 ? Link to comment https://forums.phpfreaks.com/topic/114601-utf-8-or-japanese-mail/#findComment-589327 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.