xml character references

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to read a xml-file with swedish characters (å, ä, ö). I know that
xml can't read this characters so I have replaced them with standard entities
(å ä ö) according to "ISO-8859-1".
http://www.w3schools.com/html/html_entitiesref.asp

But when I trying to read the xml-file I get "Entityreference is invalid"
Do you now any solution?
 
Hi Jesper,
I'm trying to read a xml-file with swedish characters (å, ä, ö). I know that
xml can't read this characters so I have replaced them with standard entities
(å ä ö) according to "ISO-8859-1".

either

<?xml version="1.0" encoding="ISO-8859-1"?>

with ISO-8859-1 encoded umlauts (like those you just posted).

or

<?xml version="1.0" encoding="UTF-8"?>

with UTF-8 encoded umlauts.


These are HTML entities. Don't do that.

bye
Rob
 
Thanks, I got it working. It was HTML entities that was the problem. I'm
creating the xml-file from apache/php and somehow php wanted to store the
strings in HTML format.
 
Back
Top