Oxygen does not open XML files with wrong encoding

Oxygen general issues.
Frank Ralf
Posts: 482
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Oxygen does not open XML files with wrong encoding

Post by Frank Ralf »

Hello,

I have received a number of XML files from a customer which claim to be UTF-16 in the XML declaration <?xml version="1.0" encoding="UTF-16"?> but are in fact in UTF-8. When doing a "Find/Replace in Files...", Oxygen warns me about the encoding mismatch but does not find my search string in the files even if it is there. Oxygen also cannot open the files correctly. Is there some setting to change this behavior? The files open without problem in Notepad++.

Best regards,
Frank
Frank Ralf
parson AG
www.parson-europe.com
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Oxygen does not open XML files with wrong encoding

Post by Radu »

Hi Frank,
Oxygen warns me about the encoding mismatch but does not find my search string in the files
I think those are errors (not warnings) and Oxygen just skips over processing the file as it cannot properly read all characters inside it with the UTF-16 encoding.
Oxygen also cannot open the files correctly.
Oxygen opens the XML file and probably cannot process some of the characters with the UTF-16 encoding which is specifies in the header. In general we prefer to avoid continue processing instead of opening the file with an incorrect encoding, allowing the end user to make changes and save the file and maybe this leading to loss of content.

I will add an internal issue based on this use case and think more about how we could be more helpful with this in the future.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Frank Ralf
Posts: 482
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: Oxygen does not open XML files with wrong encoding

Post by Frank Ralf »

Hi Radu,
Thanks for the feedback and creating an internal issue.

Best regards,
Frank
Frank Ralf
parson AG
www.parson-europe.com
Post Reply