XML to UTF-8
Posted: Sat Jan 03, 2009 12:02 am
I have a client that is saying that my xml is not utf-8 and I am not sure how to check or validate that it is or is not.
At the top of the header I have
<?xml version="1.0" encoding="utf-8"?>
<RECIPES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:///c:/nobackup/Recipe.xsd">
<RECIPE RECIPEID="2" TITLE="Escargots Red Lion" TTIME="60" CONVENIENCE="Gourmet" IMAGE="2.jpg" COURSE="Appetizers">
<INGS>
Does that not declare it UTF-8 and when I validate should it not notify me that is that it is not UTF-8 if that is the case?
At the top of the header I have
<?xml version="1.0" encoding="utf-8"?>
<RECIPES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:///c:/nobackup/Recipe.xsd">
<RECIPE RECIPEID="2" TITLE="Escargots Red Lion" TTIME="60" CONVENIENCE="Gourmet" IMAGE="2.jpg" COURSE="Appetizers">
<INGS>
Does that not declare it UTF-8 and when I validate should it not notify me that is that it is not UTF-8 if that is the case?