Skip to content

Commit

Permalink
Update usage of File.read to property specify encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
tlrobinson committed May 19, 2009
1 parent f1baa35 commit bd20c37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/browser/xhr.js
Expand Up @@ -259,7 +259,7 @@ XMLHttpRequest.prototype.send = function(data)
}
} else {
if (File.exists(uri.path)) {
this.responseText = File.read(uri.path).toString("UTF-8"); // FIXME: don't assume UTF-8?
this.responseText = File.read(uri.path, { charset : "UTF-8" }); // FIXME: don't assume UTF-8?
this.status = 200;
} else {
this.status = 404;
Expand Down

0 comments on commit bd20c37

Please sign in to comment.