maes
09-09-2003, 01:57 PM
What encoding type should I use if I want my XML file to contain the path of a file that the user chooses.
I can't control what's in the filename, so it should be able contain all characters that a filename can have (all chars except: \ / | * ? " < > )
Also I can't supstitute characters in the xml-file because other application might use it and they won't know if I changed anything.
the only charachter I encountered that gave a problem is the '&'. Are there any other chars that a filepath can contain and aren't allowed in an xml file?
I tried:
<?xml version="1.0" encoding="windows-1252"?>
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-16"?>
are there any other encoding types? (not according w3schools)
I think putting a filepath in an xml-file isn't uncommon, how do people solve this problem :confused:
I also have an other question. I once downloaded an XML validator from Microsoft. It was very handy, you opened an xml-file in IE, right clicked with you mouse and in the popup menu you could choose to validate (offline). Now I can't seem to find that program anymore. I thought it was msxml, downloaded and installed it, But it didn't gave me the options to validate when I right clicked?
Does anyone know what programm that it was?
Thanks
--Maes
I can't control what's in the filename, so it should be able contain all characters that a filename can have (all chars except: \ / | * ? " < > )
Also I can't supstitute characters in the xml-file because other application might use it and they won't know if I changed anything.
the only charachter I encountered that gave a problem is the '&'. Are there any other chars that a filepath can contain and aren't allowed in an xml file?
I tried:
<?xml version="1.0" encoding="windows-1252"?>
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-16"?>
are there any other encoding types? (not according w3schools)
I think putting a filepath in an xml-file isn't uncommon, how do people solve this problem :confused:
I also have an other question. I once downloaded an XML validator from Microsoft. It was very handy, you opened an xml-file in IE, right clicked with you mouse and in the popup menu you could choose to validate (offline). Now I can't seem to find that program anymore. I thought it was msxml, downloaded and installed it, But it didn't gave me the options to validate when I right clicked?
Does anyone know what programm that it was?
Thanks
--Maes