From: baer at bundes-verlag dot de
Operating system: SuSE Linux 8.1
PHP version: 4.3.4
PHP Bug Type: dBase related
Bug description: german special characters like ��� are not correct when opening a
dbase-dataset
Description:
------------
i tried to open datasets with dbase_open() and
dbase_get_record_with_names(). after doing so, all german special
characters like ������� are not correct as i can see with print_r(). so
for german users (and others too) it's not possible to use dbase-import.
Reproduce code:
---------------
$dbase_identifier = dbase_open($file,2);
$max_records = dbase_numrecords($dbase_identifier);
for ($i=0; $i<$max_records; $i++) {
$rec = dbase_get_record_with_names($dbase_identifier,$i);
print_r($rec);
}
Expected result:
----------------
i'd like to have all the characters ������� not being replaced by other
ones like \n or nothing:
Array
(
[ART_ID] => 3198
[INSERTUSER] => �bernahme
[EDITDAT] => 20030923
[EDITUSER] => UPD_APREIS
[ABI_UNTERR] => Erz�hlungen
[deleted] => 0
)
Actual result:
--------------
instead of the german characters i get replaced ones:
Array
(
[ART_ID] => 3198
[INSERTUSER] => bernahme
[EDITDAT] => 20030923
[EDITUSER] => UPD_APREIS
[ABI_UNTERR] => Erz
hlungen
[deleted] => 0
)
--
Edit bug report at http://bugs.php.net/?id=27651&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27651&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27651&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27651&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27651&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27651&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27651&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27651&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27651&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27651&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27651&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27651&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27651&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27651&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27651&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27651&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27651&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27651&r=float