473,566 Members | 2,785 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2646
Lars Michael <lm*****@hotmai l.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*****@hotmai l.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
11747
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 table in MySQL with the path & filename to the image. I have successfully uploaded and performed an update query on the database, but the problem...
18
17474
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 UTF-8 encoded. However, the Danish special characters appear wrong.
15
4367
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 XML part) the document validates fine. Does anyone have an idea how to solve this problem without changing the characters to #xxx; or &oslash; I've...
7
5150
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 currently being spammed in two ways: 1) The page is being loaded directly, therefore emailing blank results 2) The variables are made up of an...
20
9349
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 characters like '&,*,),( or /' This data(field/key) I am passing this value as a querystring. e.g. value to be passed : ABC...
3
5367
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 that backslash and the quote character used to quote the string in the query be escaped. This function quotes the other characters to make them easier...
8
1917
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 and built it Thanks Danish
13
2284
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 standard php login routine and hit a brick wall as then found out that my host didn't allow external login's (at that time) with MySQL (true!) so I got...
39
5833
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 ISO-8859-1 -t UTF-8 mydb.sql mydb_utf8.sql mysqlCREATE DATABASE mydb_utf8 CHARACTER SET utf8 COLLATE utf8_general_ci;
0
7666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8108
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7951
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6260
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2083
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.