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 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
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 :-) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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.
|
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 ø I've...
|
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...
|
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...
| |
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...
|
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
|
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...
|
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;
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |