bridge.js XMLHttpRequest force UTF-8 encoding to fix nib2cib NIBs w/ non-ASCII characters.

Possibly incorrect assumption, but nothing appears to have broken.
This commit is contained in:
tlrobinson committed 2008-12-09 01:47:39 -08:00
1 parent 5babf3708e
commit 29d33193cd
1 file changed
+1 -1
+1 -1
View File
@@ -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+")");