Skip to content
Snippets Groups Projects
Commit 55543ee5 authored by Wei, Elson's avatar Wei, Elson
Browse files

hgweb: override the charset attribute in the http request

The default http request character set is UTF-8. If the message is not encoded
in UTF-8, such as big5, it cannot be shown correctly. The 'charset' is
overridden by the root document's, such that the user can select the proper
encoding in the browser.
parent 4e2fb0ad
No related branches found
No related tags found
No related merge requests found
......@@ -327,6 +327,7 @@
};
xfr.open(method, url);
xfr.overrideMimeType("text/xhtml; charset=" + document.characterSet.toLowerCase());
xfr.send();
onstart();
return xfr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment