473,396 Members | 1,764 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,396 software developers and data experts.

Possibly PHP: Danish characters doesn't display correctly

Hi,

I'm on a Win2000 SP4 using IIS5, PHP4 (CGI-version) and MySQL

My problem is this: Instead of getting nicely formatted danish
characters when I use PHP to retrieve data from MySQL, all I get is a
'}'-character.

If I access the database through a DOS promt, everything looks just
like it should. All characters are formatted correctly.

Executing "print('ÆØÅ')" works fine too, all characters come out
nicely.

Any suggestions?

Thanks in advance,
/lmss
Jul 17 '05 #1
2 2640
Lars Michael <lm*****@hotmail.com> wrote:
[on a win32 machine]
If I access the database through a DOS promt, everything looks just
like it should. All characters are formatted correctly.

Executing "print('???')" works fine too, all characters come out
nicely.


The characters above are no danish characters... Some my guess whould
be that when you get corrrect output on a windows machine but not in a
browser, you are using different character encodings... Most probably on
the windows machine it will be some windwos-125x encoding, and the
default iso-8859-1 encoding in the browser...

--

Daniel Tryba

Jul 17 '05 #2
Daniel Tryba <ne****************@canopus.nl> wrote in message news:<c3**********@news.tue.nl>...
Lars Michael <lm*****@hotmail.com> wrote:
[on a win32 machine]
If I access the database through a DOS promt, everything looks just
like it should. All characters are formatted correctly.

Executing "print('???')" works fine too, all characters come out
nicely.


The characters above are no danish characters... Some my guess whould
be that when you get corrrect output on a windows machine but not in a
browser, you are using different character encodings... Most probably on
the windows machine it will be some windwos-125x encoding, and the
default iso-8859-1 encoding in the browser...


okay thanks, I'm down with a soare throat right now, but I'll look
into it as soon as I'm back at work. Might just drop by and bug you
again later :-)
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
18
by: LarsM | last post by:
Hi all, I am new to XML, but I use it for an RSS feed. I have one problem, which I have really been struggling with. My XML document is generated from the contents of a MySQL database. It is...
15
by: Nicolai Pedersen | last post by:
I have a problem validating a simple piece of XHTML containing danish characters. Trying to validate the following piece of XHTML gives the error mentioned beneath. If I remove the first line (the...
7
by: Paul Marshall | last post by:
Hi I am my wits end! I have a PHP script running that captures variables posted from a form on the previous page. The script then emails the results using the mail() function. The script is...
20
by: SMG | last post by:
Hi All, I have created an application which is working fine and is in about to launch, now suddenly my mgmt says there are chances that Scrip ID( a particular id and not prim key) may have special...
3
by: Taras_96 | last post by:
Hi everyone, I'm having a bit of trouble understanding the purpose of escaping nulls, and the use of addcslashes. Firstly, the manual states that: "Strictly speaking, MySQL requires only...
8
by: danish | last post by:
Hi, Can anyone suggest me why some .php files are downloading and some are executing. Ive got php 5.2.0 and apache 2.0.54. Apache came as an rpm along with Fedora 4. I downloaded php from the site...
13
by: Richard Brooks | last post by:
Does anyone here open a second MySQL database and use that as a straight IDX type file that points to the record number in the main database, for speed's sake? Some time ago I'd set up a...
39
by: alex | last post by:
I've converted a latin1 database I have to utf8. The process has been: # mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore --skip-set-charset mydb mydb.sql # iconv -f...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.