Hi.

I am currently trying to set up a very simple e-mail form in PHP. The form must accept Japanese characters in Shift_JIS. I was recommended to use the mb functions for mail, however the web hosting service I've registered doesn't allow mb functions. Whenever I recieve the mail, the characters are in some sort of numeric code, eg...

のりこ

The html referring page is in the correct encoding, and I am setting the email header in the script to Shift_JIS. Does anyone have any suggestions?

EDIT: OK, when I posted that message, the forum view shows the correct characters. Should I be sending HTML mails then, instead of plain text?

    I've done a fair bit of shift-JIS PHP coding, and it can be a nightmare. If you can, stick to HTML emails, as you have greater control over specifying which character set the content should be in. Also, check out unicode instead of shift-JIS, as lots of software supports it now, and makes everyone's life a whole lot easier 😉

    dave

      a month later

      Hey Dave, since you seem to have to a this before... could you please tell us your thoughts about coding web pages in utf-8 versus shift-jis in general?

      Are there any compelling reasons to stick with the old shift-jis way of doing things?I'

        Write a Reply...