libxmljs2 icon indicating copy to clipboard operation
libxmljs2 copied to clipboard

Validate xml encode problem

Open joweste opened this issue 4 years ago • 0 comments

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?

joweste avatar Sep 12 '21 22:09 joweste