|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25491 iconv encoding settings are not writeable
Submitted: 2003-09-11 09:02 UTC Modified: 2003-09-11 20:15 UTC
From: lapo at lapo dot it Assigned:
Status: Not a bug Package: ICONV related
PHP Version: 4.3.2 OS: Windows2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
40 - 35 = ?
Subscribe to this entry?

 [2003-09-11 09:02 UTC] lapo at lapo dot it
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-11 20:15 UTC]
Works fine with PHP 4.3.3. 

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Oct 24 04:03:35 2021 UTC