Date: 04/03/00
- Next message: pauldeb <email protected>: "[PHP-DEV] PHP 4.0 Bug #4011: Unable to parse configuration file"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #3973 Updated: Java support Makefiles are incorrect in Solaris"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: krist <email protected>
Operating system: linux redhat 6.1
PHP version: 3.0.15
PHP Bug Type: Misbehaving function
Bug description: Unable to get recode_string to work
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 <email protected>
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: pauldeb <email protected>: "[PHP-DEV] PHP 4.0 Bug #4011: Unable to parse configuration file"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #3973 Updated: Java support Makefiles are incorrect in Solaris"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

