Hi, On Sat, Jan 04, 2003 at 08:58:38PM -0000, David Powers wrote: > I upgraded to PHP 4.3.0 yesterday, and have gone through hell trying to > get things sorted out. I hope everything is now back to normal, but > wonder if there's an error in the PHP manual regarding the php.ini > setting for SJIS users.
Did you mean everything has been right in the previous version? > I used the configuration show in example 3 on > http://www.php.net/manual/en/ref.mbstring.php, but that turned all my > Japanese output, even in static html into garbage. Eventually, I got > things back to normal by commenting out the line > > output_handler = mb_output_handler > > My local machine is Windows 2000 (English version, but with Japanese as > default system locale); and my remote server is Linux Red Hat 6.2 > (English version), runnning PHP 4.3.0 on Apache 1.3.22. I might give you more information if I can see the mbstring section of your phpinfo(). As far as I looked at your description, I suspect that the pages are written in Shift_JIS charset instead of EUC-JP. In case mbstring.internal_encoding is set to EUC-JP and mbstring.http_output is set to Shift_JIS, you should write your pages in EUC-JP, as mbstring output handler will automatically convert the pages to Shift_JIS version. Note that if the page contains a meta tag like below that specifies in which charset the page is written, you have to make it the same as mbstring.http_output, not as mbstring.internal_encoding, since it won't automatically be adjusted by mb_output_handler. <meta http-equiv="Content-Type" content="text/html; charset=****"> > Is there anywhere that explains the use of mbstring in clear terms - > preferably in English, but I don't mind reading it in Japanese if > there's better material there? As one of those involved in the manual, I admit the lack of explanation and the obscurity of words over mbstring functionalities. If you find any misleading or unnatural sentences, please let us know so that we'd fix them quickly. And there's a published book which is distributed as a bunch of PDF files. Check out the following URL: http://www.net-newbie.com/support/pdf2 (Texts are written in Japanese) Moriyoshi -- PHP Internationalization Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php