Jean-Christian Imbeault wrote:
> David Emery wrote:
> 
>>
>> I found this...
>>
>> You have default_charset set to EUC-JP. It should be Shift_JIS. PHP 
>> will set the outgoing headers to this value (that's what it's for)
> 
> 
> 
> So what is the difference between mbstring.internal_encoding and 
> mbstring.http_output?

I suppose you've read the manual pages... I may really need to
add more description...

Anyway, internal_encoding is SCRIPT encoding. You should
use EUC or UTF-8. You cannot use SJIS as internal ecoding
unless you are using patched PHP.

# There are sevral encoding that cannot be work as
# internal ecoding. Examples are BIG5, SJIS, ISO-2022.

Output encoding is encoding that is sent to browser/client.
If internal and output encoding differ, mb_output_handler
will convert encoding from internal encoding to output encoding.

When you are using mbstring, don't set default charset php.ini
directive, mbstring set it to appropriate encoding accoding
to output encoding setting.

--
Yasuo Ohgaki



-- 
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to