Problem

How can I change the encoding of my xml/xsd files?

Solution

In linux, the program iconv can be used. For example, if you want to change the encoding from "UTF-8" to "ISO-8859-1":

    > cp XXX.xml XXX.xml.UTF
    > iconv --from-code=UTF-8 --to-code=ISO-8859-1 XXX.xml.UTF > XXX.xml

If the program fails, it is because some of your characters cannot be mapped to the other encode. If you want to ignore those special characteres, just add a -c option in the iconv line.

And, also remember to change the string inside that it said the encode:

    > acsReplace UTF-8 ISO-8859-1 XXX.xml

-- CarlitaParedes - 22 Nov 2006