I used the suggested way to test the XSVFAssembler and Disasembler using the xsvf_example inside the XSVFParser. The result seems to be wrong.
The problem is that the assembler turns a byte into character using UTF-8 encoding. When Disassembler reads the file, it reads a byte at a time. However, UTF-8 encoding results 2 bytes for code points >128. So the disassembler reads the wrong character by only taking one byte at a time. I am not sure the same problem exist in the main XSVFDecoder inside the /src.
I used the suggested way to test the XSVFAssembler and Disasembler using the xsvf_example inside the XSVFParser. The result seems to be wrong.
The problem is that the assembler turns a byte into character using UTF-8 encoding. When Disassembler reads the file, it reads a byte at a time. However, UTF-8 encoding results 2 bytes for code points >128. So the disassembler reads the wrong character by only taking one byte at a time. I am not sure the same problem exist in the main XSVFDecoder inside the /src.