Permalink
Browse files

Update usage of File.read to property specify encoding

  • Loading branch information...
1 parent f1baa35 commit bd20c3745e242f1428a9565e19d9d4825cf3c1b4 tlrobinson committed May 19, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/browser/xhr.js
View
2 lib/browser/xhr.js
@@ -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;

0 comments on commit bd20c37

Please sign in to comment.