Skip to content

Commit

Permalink
bridge.js XMLHttpRequest force UTF-8 encoding to fix nib2cib NIBs w/ …
Browse files Browse the repository at this point in the history
…non-ASCII characters.

Possibly incorrect assumption, but nothing appears to have broken.
  • Loading branch information
tlrobinson committed Dec 9, 2008
1 parent 5babf37 commit 29d3319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/Utilities/bridge.js
Expand Up @@ -516,7 +516,7 @@ XMLHttpRequest.prototype.send = function(body)

try
{
this.responseText = readFile(this.url);
this.responseText = readFile(this.url, "UTF-8"); // FIXME: should we really assume this is UTF-8?

if (debug)
alert("xhr response: " + this.url + " (length="+this.responseText.length+")");
Expand Down

0 comments on commit 29d3319

Please sign in to comment.