cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an-s...@apache.org
Subject cordova-plugin-file git commit: CB-8819 Fixed FileReader's readAsBinaryString on wp8
Date Tue, 14 Apr 2015 08:12:48 GMT
Repository: cordova-plugin-file
Updated Branches:
  refs/heads/master 1728575e6 -> 6f20c1926


CB-8819 Fixed FileReader's readAsBinaryString on wp8


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/6f20c192
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/6f20c192
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/6f20c192

Branch: refs/heads/master
Commit: 6f20c19263df80b4bc5aebc1d75e7567d105b2bf
Parents: 1728575
Author: alsorokin <alexander.sorokin@akvelon.com>
Authored: Wed Apr 8 18:50:58 2015 +0300
Committer: Vladimir Kotikov <v-vlkoti@microsoft.com>
Committed: Tue Apr 14 11:07:28 2015 +0300

----------------------------------------------------------------------
 src/wp/File.cs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/6f20c192/src/wp/File.cs
----------------------------------------------------------------------
diff --git a/src/wp/File.cs b/src/wp/File.cs
index eff802f..af1fb64 100644
--- a/src/wp/File.cs
+++ b/src/wp/File.cs
@@ -724,10 +724,10 @@ namespace WPCordovaClassLib.Cordova.Commands
                         readResourceAsText(options);
                         return;
                     }
-                    
+
                     byte[] buffer = readFileBytes(filePath, startPos, endPos, isoFile);
-                    result = System.Text.Encoding.UTF8.GetString(buffer, 0, buffer.Length);
-                    
+                    result = System.Text.Encoding.GetEncoding("iso-8859-1").GetString(buffer,
0, buffer.Length);
+
                 }
 
                 DispatchCommandResult(new PluginResult(PluginResult.Status.OK, result), callbackId);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message