Hello.
I have been unable to process an XML document with a few 2-byte UTF-8 characters in it.
Using CAM Editor 3.3 (CAMV 2.0.4).
Editor throws
Exception: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException
Message: Invalid byte 1 of 1-byte UTF-8 sequence.
Below is the file which has been verified to be in UTF-8 format.
Any help is GREATLY appreciated.
Kind regards, Tony
Last edit: Tony Slosar 2014-02-10
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Apparently I am having compatibility issues with this forum and Windows 8 Internet Explorer. I removed what I pasted because it was corrupted and am unable to add an attachment.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello.
I have been unable to process an XML document with a few 2-byte UTF-8 characters in it.
Using CAM Editor 3.3 (CAMV 2.0.4).
Editor throws
Exception: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException
Message: Invalid byte 1 of 1-byte UTF-8 sequence.
Below is the file which has been verified to be in UTF-8 format.
Any help is GREATLY appreciated.
Kind regards, Tony
Last edit: Tony Slosar 2014-02-10
Apparently I am having compatibility issues with this forum and Windows 8 Internet Explorer. I removed what I pasted because it was corrupted and am unable to add an attachment.
Tony, the trick here is you have to type a TAB character first before inserting the XML source code:
but is looks like the file is corrupted - so need to use a ZIP file of the original XML to either attach here - or send to us in email.
Thanks, David
Tony,
The solution for this issue is very simple. Open CAMed.ini file. The file should be located in the installation folder of the CAM Editor.
Add following line at the end of the file:
-Dfile.encoding=UTF8
Save it and run CAMEditor.
Please let us know if it helps.
Worked perfectly. Thank you very much.