ID:               27651
 Updated by:       [EMAIL PROTECTED]
 Reported By:      baer at bundes-verlag dot de
-Status:           Open
+Status:           Bogus
 Bug Type:         dBase related
 Operating System: SuSE Linux 8.1
 PHP Version:      4.3.4
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

You must read the names with the character encoding you wrote it.
Assuming you are runing the data writer on windows they use your
windows char code which may be some Win1252 or whatever. Trying to
display them with the browser would require them being in iso-8859-1
encoding. If you run IExplorer you can force the char encoding to be
used. Anyway this is no php problem. However you may also try to work
around it by using mbstring functions to convert the encoding once you
know the input encoding.


Previous Comments:
------------------------------------------------------------------------

[2004-03-19 05:33:17] baer at bundes-verlag dot de

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 this bug report at http://bugs.php.net/?id=27651&edit=1

Reply via email to