Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetching XML with encoding iso-8859-1 deliever wrong characters #180

Open
jonasdev opened this issue Apr 7, 2020 · 0 comments
Open

Fetching XML with encoding iso-8859-1 deliever wrong characters #180

jonasdev opened this issue Apr 7, 2020 · 0 comments

Comments

@jonasdev
Copy link

jonasdev commented Apr 7, 2020

When I fetch an external xml feed with encoding iso-8859-1 with vanilla javascript, the characters all works fine.

But with this package, it will replace letters with apostrophe with question mark symbols.
How can I change this?

const xhr = new XMLHttpRequest();
  xhr.open('GET', url, true);
  xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
  xhr.onreadystatechange = function() {
    if (this.readyState === 4 && this.status === 200) {
      console.log(this.responseText)    
      }
    }

  xhr.send();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant