rohant Posted May 30, 2007 Share Posted May 30, 2007 Hi , I am using mail funtion to send mail to some people having japanese text as contents. the data for the mail comes from database where the data is stored in UJIS. while sending the mail i am setting the encoding as UJIS in mail headers. but when the mail is sent using this data, the subject line of the mail gets ascii characters. contents appear in correct japanese,just the problem is with subject one more thing there is no problem with the data stored in database. i goolged some what but no success. is there any setting needs to be done for encoding of subject only. your help would be appreciated. Thanking in advance, ~Rohant Quote Link to comment https://forums.phpfreaks.com/topic/53509-mail-function-subject-getting-ascii-charactes-for-japanese-text/ Share on other sites More sharing options...
btherl Posted May 30, 2007 Share Posted May 30, 2007 You might want to try this suggestion: http://sg.php.net/manual/en/function.mail.php#27997 It refers to this function http://sg.php.net/manual/en/function.mb-send-mail.php And provides an alternative if the above is not available. The mb_* functions were written to support japanese text, so you should find them useful. Quote Link to comment https://forums.phpfreaks.com/topic/53509-mail-function-subject-getting-ascii-charactes-for-japanese-text/#findComment-264473 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.