UTF 8 character encoding in XML file

Dear Sitepointers,

I am generating an XML file of translated terms

http://www.spanishproperty.es/placeholders_xml.php

The translated terms are held in the database and work fine on the web using UTF8

However when I try and create an XML file I seem to have a problem with the character encoding.

Any ideas?

Thanks

Will

first up, your <root> tag doesn’t have a matching end tag.
and there are some </placeholder> closing tags that don’t match.

I’d also try add utf-8 as the charset.
your html header is currently
Content-Type: text/html

maybe it should contain something like:

Content-Type: text/html; charset=utf-8

or even
Content-Type: text/xml

Turns out the missing closing tags where enough to fix it.

The declaration <?xml version=“1.0” encoding=“UTF-8”?> was correct.