XML problem with special characters

srdva59

Active member
Joined
Feb 21, 2009
Messages
28
Programming Experience
Beginner
hi,
i try save/load a XML with special characters like this:
ão ção ólá
when i save nothing goes wrong but when i try open using internet explorer
or any software they result in a error in that characters.
the header that i using is this:
HTML:
<?xml version="1.0" encoding="UTF-8"?>
<dataroot xmlns:od="urn:schemas-microsoft-com:officedata" generated="2010-03-07T12:33:07">

what i need change for correct the problem?
thanks a lot for your help :)
 
It sounds as file encoding is wrong. compared to content encoding. For example I can reproduce the error "An invalid character was found in text content." if I put that content with Notepad and save file as Ansi, and try to open in IE. If I then change to save file as Utf-8 it opens fine in IE. So it may seem the problem lies in how you are outputting that file.
 
Back
Top