Re: Re: mbstring: Japanese: encoding conversion not
| From: | David Emery | Date: | Wed, 10 Jul 2002 07:19:32 +0000 |
| Subject: | Re: Re: mbstring: Japanese: encoding conversion not | ||
| References: | 1 2 3 4 5 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-272@lists.php.net to get a copy of this message | ||
At 13:48 +0900 02.7.10, Jean-Christian Imbeault wrote:
David Emery wrote:So it *doesn't* work on your system. Basically, if the input conversion doesn't happen then there is something wrong with your set-up. Maybe it's time to start over from scratch. Making sure you compile with both --enable-mbstring and --enable-mbstr-enc-trans might be the key. Or not. Anyway it's probably some small configuration error that you've overlooked along the way.so here's a really simple test that works as it should on my system. Try it on yours and see if it's ok.It works, but there is one problem. When I enter some japanese into the form your program says: "The encoding of variable test when it was received by the script was: SJIS (should be EUC-JP when Japanese has been entered in the form field)" As you can see the encoding should have been EUC-JP but was in fact SJIS. So the user input was not automatically translated into the internal encoding ...
Even worse ... the user input become mojibake (garbage). The input become ?????> and because of the ">" ruins the html code! Yuck.I'd recommend forgetting about this particular error until you get past step one, which is getting the input conversion working - the source of both problems is surely the same. Gambatte, -dave