php-i18n Digest 23 Jul 2004 07:23:34 -0000 Issue 237
Topics (messages 734 through 734):
Problem with Shift_JIS script encoding
734 by: PHPDiscuss - PHP Newsgroups and mailing lists
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin 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....
--- End Message ---