Our app is receiving data from a source with incorrect XML headers. Although the workaround in that post works (inserting an nginx proxy), we'd like to find a client-side solution, if there is one.
So, is there a way to intercept an XML document and force the document to be interpreted as Windows 1251 rather than UTF-8? XMLHttpRequest has an "overrideMimeType" property, but not an "overrideEncoding".
All of this matters primarily for IE, which completely fails to parse the document if it hits a single impossible character. Chrome and Firefox just show question mark characters, which is fine.