UTF-16 in Xml

Post Reply
PdFUser5000
Member
Posts: 22
Joined: Fri Jun 12, 2020 11:23 am

UTF-16 in Xml

Post by PdFUser5000 » Fri Oct 02, 2020 7:16 am

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!

freddyp
Advanced member
Posts: 530
Joined: Thu Feb 09, 2012 3:53 pm

Re: UTF-16 in Xml

Post by freddyp » 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?

PdFUser5000
Member
Posts: 22
Joined: Fri Jun 12, 2020 11:23 am

Re: UTF-16 in Xml

Post by PdFUser5000 » Fri Oct 02, 2020 9:31 am

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.

Post Reply