|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-31 16:13 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 15:00:01 2025 UTC |
I'm running apache 1.3.12 with php 3.0.15 compiled with GNU recode 3.5c on linux redhat 6.1. The GNU recode package is to be used for converting between different encodings. When calling the recode program from the command line, I can easily convert from ISO-8859-1 to UTF-8 and then back to ISO-8859-1, ending up with the same result as I started with. When I use the recode program from within php, I'm not able to convert back to ISO-8859-1. The php test code looks like this: $a = "???" ; $b = recode_string("ISO-8859-1..UTF-8", $a) ; $c = recode_string("UTF-8..ISO-8859-1", $b) ; print "a = $a<br>" ; print "b = $b<br>" ; print "c = $c<br>" ; The output should be $c with the same value as $a, but all I get is a = ??? b = øåæ c = Am I using the program correctly ? Is this a known bug ? Is there any way I can debug it ? Thanks, Kristian Halle krist@fast.no