473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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
Jul 17 '05 #1
2 3687
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Matt Young | last post by:
I've been tasked with integrating an older management system based on DBF files with my snappy new ASP application to provide users of the ASP application with real-time data from the management...
0
by: weldonj | last post by:
I upgraded to MySQL 4.1.1-alpha-standard the other night and ever since then at least twice a day my main message board table will crash. Here's what i get when I check on the board or analyze...
10
by: level8 | last post by:
I would like to see a Clipper/dbase DBF file as a table in SQL Server 7.0. How can I SELECT rows from DBF file? Should I use OLE DB Provider or ODBC, and how?
1
by: Derek Griffiths | last post by:
Most of the complicated programs I write are boring applications that manipulate databases associated with the medical billing program where I work. The program uses foxpro dbases (version 3) for...
6
by: Tomek | last post by:
Hi, Please help me with Data Connections into dBase files. I have catalog with lot of files like *.dbf and *.mdx . Every file contains one table (I can see it in MS Access). How can I make...
2
by: RottNKorpse | last post by:
Well I am trying to make an admin section to allow my other admins of my site able to add content to my mysql database without giving them phpmyadmin access and without teaching them out to use it as...
3
by: Dave | last post by:
I'm writing a c# Windows program that needs to be able to insert records into a dbase table. I can read it using a dataset but can't insert records. I receive the following error, ERROR ...
6
by: Aleyna[] | last post by:
Hi all, I wanted to connect an old DBASE file (I don't know the exact version) but I could not make it at all. I couldn't find a way to execute sql statements on db file using c#. The...
10
by: Johny | last post by:
Is there a module for reading/modifing db files from Python? Thanks for help B.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.