#25491 [Opn->Bgs]: iconv encoding settings are not writeable

From: Date: Fri, 12 Sep 2003 00:15:52 +0000
Subject: #25491 [Opn->Bgs]: iconv encoding settings are not writeable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-47485@lists.php.net to get a copy of this message
ID: 25491 Updated by: sniper@php.net Reported By: lapo at lapo dot it -Status: Open +Status: Bogus Bug Type: ICONV related Operating System: Windows2000 PHP Version: 4.3.2 New Comment: Works fine with PHP 4.3.3. Previous Comments: ------------------------------------------------------------------------ [2003-09-11 09:02:13] lapo at lapo dot it Description: ------------ input_encoding, internal_encoding, output_encoding are not writable on Win32. Documentation says that those values are PHP_INI_ALL and, on other OS (alexdupre checked it on FreeBSD), it actually is. On Windows it seems not. I had the doubt that "the OS didn't support that specific charset", but this can't be as "string iconv ( string in_charset, string out_charset, string str)" works perfectly with the very same charset names. Reproduce code: --------------- All of them die: iconv_set_encoding('internal_encoding', 'Windows-1252') or die('Cannot change internal encoding.'); iconv_set_encoding('output_encoding', 'UTF-8') or die('Cannot change output encoding.'); ini_set('iconv.internal_encoding', 'Windows-1252') or die('Cannot change internal encoding.'); ini_set('iconv.output_encoding', 'UTF-8') or die('Cannot change output encoding.'); Expected result: ---------------- A change in charset. Actual result: -------------- A return value of FALSE. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25491&edit=1

« previous php.bugs (#47485) next »