Re: [PHP-DEV] iconv patch... From: Rui Hirokawa (louis <email protected>)
Date: 03/09/01

On 09 Mar 2001 18:31:07 +0100
Ondrej Sury <sury.ondrej <email protected>> wrote:

>
> I think that UTF-8 is better choice as default encoding ;-) And because I
> couldn't compile this module, I have added php_iconv_init_globals and put
> it in ZEND_INIT_MODULE_GLOBALS. (I have inspired by mysql module, so this
> shouldn't be neccessary correct.)

I personaly agree with your choice because I am using multibyte encoding (japanese) as my native language.
But some other modules like ext/xml are using ISO-8859-1 as default encoding now.
You can easily change these encoding settings using php.ini as follows,

[iconv]
iconv.internal_encoding = "UTF-8"
iconv.output_encoding = "UTF-8"

The iconv.input_encoding encoding has no meaning now.
I have a plan to add encoding translation capability between input encoding and internal encoding in http input (POST/GET/Cookie) parser.

-- 
----------------------------------------------------------
Rui Hirokawa <louis <email protected>>
maintainer of japanese PHP manual <hirokawa <email protected>>

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>