Japanese character problem on Linux (It works on Windows)
Posted: Wed Mar 31, 2004 1:24 am
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
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