diff options
author | Yegor Kozlov <yegor@apache.org> | 2010-06-13 06:26:14 +0000 |
---|---|---|
committer | Yegor Kozlov <yegor@apache.org> | 2010-06-13 06:26:14 +0000 |
commit | 9c6fdb6f53378c1d411ab302528ba8f56f041414 (patch) | |
tree | 1f76e63b356171c07b954f6f8d64fe134cf82a55 /src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDataFormatter.java | |
parent | 1deea0cfa111f2f72d7d426d095ec04c71a6db72 (diff) | |
download | poi-9c6fdb6f53378c1d411ab302528ba8f56f041414.tar.gz poi-9c6fdb6f53378c1d411ab302528ba8f56f041414.zip |
force ASCII encoding when compiling sources, fixed unmappable characters for encoding ASCII
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@954172 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDataFormatter.java')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDataFormatter.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDataFormatter.java b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDataFormatter.java index e5f1f8129c..4759a6c04b 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDataFormatter.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDataFormatter.java @@ -405,9 +405,9 @@ public final class TestHSSFDataFormatter extends TestCase { assertEquals("10.5", f.formatCellValue(sheet.getRow(11).getCell(1))); // text isn't quite the format rule... - assertEquals("£nn.nn", sheet.getRow(12).getCell(0).getStringCellValue()); - assertEquals("\"£\"#,##0.00", sheet.getRow(12).getCell(1).getCellStyle().getDataFormatString()); - assertEquals("£10.52", f.formatCellValue(sheet.getRow(12).getCell(1))); + assertEquals("\u00a3nn.nn", sheet.getRow(12).getCell(0).getStringCellValue()); + assertEquals("\"\u00a3\"#,##0.00", sheet.getRow(12).getCell(1).getCellStyle().getDataFormatString()); + assertEquals("\u00a310.52", f.formatCellValue(sheet.getRow(12).getCell(1))); } private static void log(String msg) { |