Skip to content

Commit 6f20c19

Browse files
alsorokinVladimir Kotikov
authored andcommitted
CB-8819 Fixed FileReader's readAsBinaryString on wp8
1 parent 1728575 commit 6f20c19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wp/File.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -724,10 +724,10 @@ public void readAsBinaryString(string options)
724724
readResourceAsText(options);
725725
return;
726726
}
727-
727+
728728
byte[] buffer = readFileBytes(filePath, startPos, endPos, isoFile);
729-
result = System.Text.Encoding.UTF8.GetString(buffer, 0, buffer.Length);
730-
729+
result = System.Text.Encoding.GetEncoding("iso-8859-1").GetString(buffer, 0, buffer.Length);
730+
731731
}
732732

733733
DispatchCommandResult(new PluginResult(PluginResult.Status.OK, result), callbackId);

0 commit comments

Comments
 (0)