Encoding error

Discussion in 'ASP.NET / ASP.NET Core' started by Benja, May 13, 2008.

  1. 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 [​IMG]


    Cheers





    Rafael
     
  2. 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.[​IMG]


    Cheers!
     
  3. Bruce

    Bruce DiscountASP.NET Staff

Share This Page