mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-19 23:05:01 +00:00
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:
1 parent
5babf3708e
commit
29d33193cd
1 file changed
+1
-1
@@ -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+")");
|
||||
|
||||
Reference in new issue
Block a user