Jump to content

utf8 php and japanese


tallberg

Recommended Posts

Hi

 

Im trying to convert a site into japanese.

I found out that if the php page is in uft8 then it will display the charecters.

However, when i convert my php page with a shopping cart and other related functions

I get the errror message

 

Content Encoding Error

The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

 

Any ideas how i can retain my php functionality and use utf8 to display japanese?

Link to comment
https://forums.phpfreaks.com/topic/200880-utf8-php-and-japanese/
Share on other sites

For such languages as Chinese or Japanese, UTF-8 is not an optimal encoding, as it is optimized for displaying primarily latin characters. I would recommend using UTF-16. Note that you must inform the browser in a HTTP header that you are using this encoding. META tag is not enough:

 

header('Content-type: text/html;charset=utf-16');

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.