Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- php displays dBase table with wrong charset!
February 11, 2005, 11:21 pm
rate this thread
I read an dBase table under Win XP by the common dBase functions of PHP
But all records are displayd with a wrong charset.
All umlauts of the databasefile like "öäüéô"... and so on are not
displayed or are displayed in a wrong way! :-(
How can I set the correct charset for the table, that all umlauts keep save?
I thank you so much for your answer,
Re: php displays dBase table with wrong charset!
(a) In your php.ini file change this line: default_charset = "UTF-8"
(b) In your .htaccess file set this line: php_value default_charset "UTF-8"
You must also ensure that your HTML output is UTF-8, so issue this command
before you output anything:
Hope this helps.