Problem with Shift_JIS script encoding

From: Date: Fri, 23 Jul 2004 07:21:49 +0000
Subject: Problem with Shift_JIS script encoding
Groups: php.i18n 
Request: Send a blank email to php-i18n+get-734@lists.php.net to get a copy of this message
I've been having a lot of trouble since upgrading over PHP4.3.1. Here's the problem: 1. My scripts are all written in Shift_JIS 2. When I try to send mail using the mb_send_mail function, the messages written in my scripts in Shift_JIS are not properly encoded (it appears that PHP thinks that the code is in EUC and is making an incorrect conversion). From searching around online, it would appear that it is possible to convert the Shift_JIS code into EUC code by the following settings: ;; Enable Output Buffering output_buffering = On ;; Set mb_output_handler to enable output conversion output_handler = mb_output_handler ;; Set HTTP header charset default_charset = Shift_JIS ;; Set default language to Japanese mbstring.language = Japanese ;; Set http input encoding conversion to auto mbstring.http_input = auto ;; Set internal encoding to EUC-JP mbstring.internal_encoding = EUC-JP ;; Do not print invalid characters mbstring.substitute_character = none However, it does not work. Any suggestions would be GREATLY appreciated....

« previous php.i18n (#734) next »