ID: 41533 User updated by: jprolando at gmail dot com Reported By: jprolando at gmail dot com -Status: Feedback +Status: Open Bug Type: dBase related Operating System: Windows XP PHP Version: 5.2.3RC1 New Comment:
Well, the database is being used in my bussines, and Im sure those characters are displayed correctly. Besides I load the database on acces and the special characters show up correctly. Here is a screenshots of the database being used in access http://www.hartley.edu.uy/caracteresacces.bmp Previous Comments: ------------------------------------------------------------------------ [2007-05-29 21:41:28] [EMAIL PROTECTED] Are you sure the database really contains those characters (and not the broken ones)? Did you check it? How? ------------------------------------------------------------------------ [2007-05-29 21:38:22] jprolando at gmail dot com 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 this bug report at http://bugs.php.net/?id=41533&edit=1
