kripken / xml.js

Port of libxml to JavaScript using Emscripten
Other
174 stars 67 forks source link

utf-8 error online demo #10

Closed jvail closed 8 years ago

jvail commented 8 years ago

Any idea why validating ...

<?xml version="1.0"?>
<test>m²</test>

gives a parser error using the 'XML Text' input tab at http://syssgx.github.io/xml.js/ ?

file.xml:2: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xB2 0x3C 0x2F 0x74
<test>mᄇ</test>
       ^

Thank you Jan

sterpe commented 8 years ago

If you can validate the same with c-l tool, then I would say it must be some issue in the online demo text box.

jvail commented 8 years ago

Yes, you are right. I am able to both parse/validate it with xmllint cli and xml.js via node.

sterpe commented 8 years ago

Cool. The demo site is maintained separately. You may want to refile the bug with @syssgx.