Connecting Tech Pros Worldwide Help | Site Map

php displays dBase table with wrong charset!

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 11:27 AM
Goldfisch1980
Guest
 
Posts: n/a
Default php displays dBase table with wrong charset!

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

  #2  
Old July 17th, 2005, 11:28 AM
DH
Guest
 
Posts: n/a
Default Re: php displays dBase table with wrong charset!

Goldfisch1980 wrote:[color=blue]
> 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[/color]

You may, or may not, find helpful info here:
http://www.dbtools.com.br/EN/article.php?id=00043
  #3  
Old July 17th, 2005, 11:29 AM
Tony Marston
Guest
 
Posts: n/a
Default Re: php displays dBase table with wrong charset!

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" <doug861@comcast.net> wrote in message
news:dI-dnZ9h_soDa5DfRVn-ow@comcast.com...[color=blue]
> Goldfisch1980 wrote:[color=green]
>> 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[/color]
>
> You may, or may not, find helpful info here:
> http://www.dbtools.com.br/EN/article.php?id=00043[/color]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.