Japanese character problem on Linux (It works on Windows)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
apatil
Forum Newbie
Posts: 1
Joined: Wed Mar 31, 2004 1:24 am

Japanese character problem on Linux (It works on Windows)

Post by apatil »

Hello,

My PHP script displays Japanese characters properly on Windows.
The data comes from a flat file and the encoding used is Shift_JIS
and it is seen properly in the browser.

I am trying to run the same script on Linux, but the Japanese characters
are not displayed properly.

I suspect that this is because PHP isnt configured/installed properly
on Linux.

The manual says that the mbstring module handles multi-byte
characters (Japanese) and this module must enabled
using the --enable-mbstring option.

Where exactly do I specify --enable-mbstring ? How do I know
whether this configuration is properly done in my php.ini

I tried to understand from the URL http://www.phpfreaks.com/phpmanual/page ... tring.html
but I am only getting more confused.

If someone can help me, I will be greatful.

Ajay
Post Reply