Is it that difficult to develop a site that supports 2 byte languages (Japanese, Chinese)? I am planning to develop a multilingual site using PHP. Kindly let me know, if you know some easy methods.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
‘Double-byte’ character sets are pretty much(*) a thing of the past. Today, you use the Unicode character set so a site can support every language seamlessly without the horror of switching code pages.
Write your page content saved in the UTF-8 encoding, serve it to browsers as UTF-8 and set your database tables and database connection to UTF-8. That’s often enough in itself. If you need to be able to process UTF-8 strings without accidentally snipping a character in half, use mbstring.
(*: there are still a few horrible old systems in East Asia that you have to encode to nasty legacy character sets for, such as old mobile phones and some dodgy webmail services. Hopefully this won’t affect you. In this case you should still use UTF-8 internally for everything, but use
iconvto convert to eg. Shift-JIS on the way out.)