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

Rendering URLs with missing charset from response results in wrong encoding #44

Closed
cburgmer opened this issue Nov 21, 2013 · 0 comments
Closed

Comments

@cburgmer
Copy link
Owner

Rendering a page with an encoding different to the current document will yield "mojibake" when the server does not indicate the page's encoding in the response header.

Solution could be to use the
xhr.responseType = "document";
xhr2 feature, see https://developer.mozilla.org/en-US/docs/HTML_in_XMLHttpRequest when requesting urls through drawURL().

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