incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tim...@apache.org
Subject [13/48] js commit: fixed able to read special characters
Date Thu, 07 Jun 2012 20:40:44 GMT
fixed able to read special characters


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/93352e7f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/93352e7f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/93352e7f

Branch: refs/heads/master
Commit: 93352e7f9ce97c2252ddcb7922b51554cbcb9661
Parents: 58b9748
Author: Tim Kim <tim.kim@nitobi.com>
Authored: Mon Jun 4 11:57:12 2012 -0700
Committer: Tim Kim <tim.kim@nitobi.com>
Committed: Thu Jun 7 13:40:24 2012 -0700

----------------------------------------------------------------------
 lib/playbook/plugin/playbook/FileReader.js |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/93352e7f/lib/playbook/plugin/playbook/FileReader.js
----------------------------------------------------------------------
diff --git a/lib/playbook/plugin/playbook/FileReader.js b/lib/playbook/plugin/playbook/FileReader.js
index 8591f9c..f2f1ac6 100644
--- a/lib/playbook/plugin/playbook/FileReader.js
+++ b/lib/playbook/plugin/playbook/FileReader.js
@@ -94,7 +94,7 @@ FileReader.prototype.readAsText = function(file, encoding) {
         var getFileContents = function(path,blob){
             if(blob){
 
-                theText = blackberry.utils.blobToString(blob);
+                theText = blackberry.utils.blobToString(blob, enc);
                 me.result = theText;
 
                 if (typeof me.onload === "function") {
@@ -175,7 +175,6 @@ FileReader.prototype.readAsDataURL = function(file) {
         var theText = '';
         var getFileContents = function(path,blob){
             if(blob){
-
                 theText = blackberry.utils.blobToString(blob, enc);
                 me.result = "data:text/plain;base64," +theText;
 


Mime
View raw message