You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ti...@apache.org on 2012/06/07 22:40:44 UTC

[13/48] js commit: fixed able to read special characters

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 <ti...@nitobi.com>
Authored: Mon Jun 4 11:57:12 2012 -0700
Committer: Tim Kim <ti...@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;