Page 1 of 1

PArsing XML with PHP....german text issue

Posted: Tue Dec 23, 2003 7:15 pm
by kendall
Hello,

i have created a XMl page from an excel sheet in which the data has german words

in parsing the xml using php the german words arent spelt properly

eg
Düsseldorf, Zakk
come out like
Düsseldorf, Zakk
how do you guys handle this....i think its an error of the document encoding type but i am not sure what to do...
Kendall[/quote]

Posted: Wed Dec 24, 2003 1:42 am
by volka
you need a charset that contains the character
for xml that might be

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1"?>
<root>
	Düsseldorf, Zakk
</root>
for the html-ouput there are numerous ways to set the charset.
e.g.

Code: Select all

<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
or xml-conform in the prolog as well