Jump to content

mail function-subject getting ascii charactes for japanese text


rohant

Recommended Posts

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

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.

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.