Page 1 of 1

How To Find Invalid XML Characters (Unicode 0x12)

Posted: Wed Dec 06, 2017 5:13 pm
by rstring9
Hello,

I have a system which reads rows from a database, then makes those rows XML records.
The system is reporting, "An invalid XML character (Unicode: 0x12) was found in the element content of the document."

The website https://unicodelookup.com tells me that this is "dc2 device control two ctrl-r". This is HEX value 0x12

Can anyone help me understand how to Use the Oxygen editor to find the invalid character(s)?

Thanks in advance,
Rich

Re: How To Find Invalid XML Characters (Unicode 0x12)

Posted: Wed Dec 06, 2017 7:30 pm
by adrian
Hello,

Assuming that message is indeed correct and there is a Unicode character with the hexadecimal code 0x12 in the content, you can search for it in Oxygen with the Find > Find/Replace tool. Use:
Find: \u0012
Options: [x] Regular expression

You can also use this with the Find > Find/Replace in Files tool.

Regards,
Adrian