Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6BE4D17E5C for ; Tue, 14 Apr 2015 08:12:48 +0000 (UTC) Received: (qmail 35112 invoked by uid 500); 14 Apr 2015 08:12:48 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 35082 invoked by uid 500); 14 Apr 2015 08:12:48 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 35073 invoked by uid 99); 14 Apr 2015 08:12:48 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2015 08:12:48 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0C734E0060; Tue, 14 Apr 2015 08:12:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: an-selm@apache.org To: commits@cordova.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: cordova-plugin-file git commit: CB-8819 Fixed FileReader's readAsBinaryString on wp8 Date: Tue, 14 Apr 2015 08:12:48 +0000 (UTC) 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 Authored: Wed Apr 8 18:50:58 2015 +0300 Committer: Vladimir Kotikov 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