PDA

View Full Version : Encoding error


Benja
05-13-2008, 08:23 AM
I need to encode an xml file with spanish characters but the server sends me the following error "Invalid character in the given encoding", i've tried to fix it changing theencodewith iso-8859-1for latin 1 codification, butnothig happens.

so, how can i encode rightly the xml file?

this is a copi of the heather of the xml file that we aare using:





thanks a lot http://community.discountasp.net/emoticons/smilewinkgrin.gif


Cheers





Rafael

Benja
05-16-2008, 02:23 AM
Hey Bruce thanks for the answare


I fixed the problem, It was in the default settings of the notepad++ were I was writing my XML. I changed the preferences from ansi to UTF-8 without BOM and it worked.http://community.discountasp.net/emoticons/tongue.gif


Cheers!

bruce
05-16-2008, 11:42 AM
may be this will help you, http://www.w3schools.com/XML/xml_encoding.asp


Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)