XML encoding, which one? encoding="ISO-8859-1" or encoding="UTF-8"?

Former Member
Former Member

I am working on an software application that uses Termbases. I'm only concerned with Western languages (EN, DE, FR, IT and ES) and I noticed that Web browsers don't render XML files (I get an "encoding error") when I use <?xml version="1.0" encoding="UTF-8"?> but the XML file is rendered correctly when I use <?xml version="1.0" encoding="ISO-8859-1"?>
The problem seems to be accented characters like á é í ó ú ñ à ê etc. My XML file comes from an XML string. I'm aware that ISO-8859-1 is deprecated and UTF-8 is practically the standard, but it doesn't work for me. Any suggestions? Thanks.