XML and bad encoding?

I used FireFox to read an XML file I made and go an error message

[quote]XML Parsing Error: unclosed token
Location: file:///Users/jim/Documents/%20%20%23%23%23RVC%20Exp/RVCLB%20Export%20Fuel.xml
Line Number 3, Column 29400:[/quote]

After much searching found that one of the field had a hex “C2” . Removing that and recreate was correct. I know that field and data had been there for several years not causing any problem, just waiting to jump up and bite me.

#1. Why not an error message or something, it just created a partial file?

#2. Are there other characters I need to get rid of, check for.? Is there an easy way to do that?

You might want to define the encoding of your strings before you put them in the XML document by the sound of it.

Firefox is probably expecting UTF-8 but C2 is an extended ASCII character which is not compatible without conversion.

Thanks Bob.

Here is a web site I use when I need to work with encodings: http://www.isthisthingon.org/unicode/index.phtml

If you type C2 into the UTF8 Hex Code field and hit “go” you will see that it is not a valid UTF8 codepoint. That is why you are getting the error.