Problem with Shift_JIS script encoding
[email protected] (PHPDiscuss - PHP Newsgroups and mailing lists)
| Newsgroups | gmane.comp.php.internationalization |
|---|---|
| Organization | PHPDiscuss.com |
| Message-ID | <[email protected]> |
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.... -- PHP Internationalization Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php