|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-09-11 20:15 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 09:00:02 2025 UTC |
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.