#41533 [NEW]: function dbase_get_record_with_names doesnt read special characters

From: Date: Tue, 29 May 2007 21:38:22 +0000
Subject: #41533 [NEW]: function dbase_get_record_with_names doesnt read special characters
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-113170@lists.php.net to get a copy of this message
From: jprolando at gmail dot com Operating system: Windows XP PHP version: 5.2.3RC1 PHP Bug Type: dBase related Bug description: function dbase_get_record_with_names doesnt read special characters Description: ------------ Excuse me for my english I get data from a dbase database and special characters like ñ or ì are changed by the function "dbase_get_record_with_names". Ive tried to use Code Headers function UTF8_encode UTF8_decode and that doesnt seem to solve the problem. Reproduce code: --------------- <?php //header('Content-Type: text/html; charset=iso-8859-1'); include ('config.php'); $link = conectar_BD(); $db = dbase_open('ART1.DBF', 0); if ($db) { $numero_registros = dbase_numrecords($db); for ($i = 1; $i <= $numero_registros; $i++) { $row = dbase_get_record_with_names($db, $i); $codigoweb1 = $row['CODIGOWEB1']; $codigoweb2 = $row['CODIGOWEB2']; $codigo = $row['CODIGO']; $articulo = $row['ARTICULO']; echo "Linea ($i):--> " . $row['ARTICULO'] . "</br>"; } } ?> Expected result: ---------------- The Function should display the "ñ" and "ì" characters correctly in my web browser Actual result: -------------- "ñ" displays as "¤" and "ò" as "¢" -- Edit bug report at http://bugs.php.net/?id=41533&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41533&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41533&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41533&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41533&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41533&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41533&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41533&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41533&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41533&r=support Expected behavior: http://bugs.php.net/fix.php?id=41533&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41533&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41533&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41533&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41533&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41533&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41533&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41533&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41533&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41533&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41533&r=mysqlcfg

« previous php.bugs (#113170) next »