Page 1 of 1
UTF-16 in Xml
Posted: Fri Oct 02, 2020 7:16 am
by PdFUser5000
Hello
is UTF-16 not supported in switch metadata?
Tried using it, but I get an error: Input is not proper UTF-8, indicate encoding!
Re: UTF-16 in Xml
Posted: Fri Oct 02, 2020 9:04 am
by freddyp
Many XML files do not have an XML declaration as the first line:
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
That is OK, but then UTF-8 is assumed. Perhaps your XML file does not have such a declaration?
Re: UTF-16 in Xml
Posted: Fri Oct 02, 2020 9:31 am
by PdFUser5000
freddyp wrote: ↑Fri Oct 02, 2020 9:04 am
Many XML files do not have an XML declaration as the first line:
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
That is OK, but then UTF-8 is assumed. Perhaps your XML file does not have such a declaration?
I have a declaration. I tried UTF-16 and Windows-1252 which did not work. FInally i tried ISO-8859-1 instead, and it worked.