php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lapo at lapo dot it
New email:
PHP Version: OS:

 

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 22:01:28 2024 UTC