libxmljs2
libxmljs2 copied to clipboard
Validate xml encode problem
Hi, I am treying validate a xml againt xsd. All xsd are from third and has the encoding:
When I try validate my xmls, I get:
F:\Programas\vuejs\nuxt-iclindoctor\server_iclindoctor\node_modules\libxmljs2\lib\document.js:117
return bindings.fromXml(string, options);
^
Error: Unsupported encoding windows-1252
at fromXml (F:\Programas\vuejs\nuxt-iclindoctor\server_iclindoctor\node_modules\libxmljs2\lib\document.js:117:19)
at valida (F:\Programas\vuejs\nuxt-iclindoctor\server_iclindoctor\app.js:161:15) {
domain: 1,
code: 32,
level: 3,
column: 44,
line: 1,
str1: 'windows-1252'
}
I can´t change the xsd.
Is there some workaround to solve it?