By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,433 Members | 771 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,433 IT Pros & Developers. It's quick & easy.

php displays dBase table with wrong charset!

P: n/a
Hi!

I read an dBase table under Win XP by the common dBase functions of PHP
4.3.5.
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,
Lars
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
DH
Goldfisch1980 wrote:
Hi!

I read an dBase table under Win XP by the common dBase functions of PHP
4.3.5.
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,
Lars


You may, or may not, find helpful info here:
http://www.dbtools.com.br/EN/article.php?id=00043
Jul 17 '05 #2

P: n/a
You need to change the default charset that PHP uses.

(a) In your php.ini file change this line: default_charset = "UTF-8"
or
(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:
header('content-type:text/html; charset=UTF-8');

Hope this helps.
--
Tony Marston

http://www.tonymarston.net

"DH" <do*****@comcast.net> wrote in message
news:dI********************@comcast.com...
Goldfisch1980 wrote:
Hi!

I read an dBase table under Win XP by the common dBase functions of PHP
4.3.5.
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,
Lars


You may, or may not, find helpful info here:
http://www.dbtools.com.br/EN/article.php?id=00043

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.