37
40
private static final String EURO_FOR_DOLLAR_TXT = "\u20AC_for_Dollar.txt";
38
41
private static final String OIL_BARREL_TXT = "\u00D6lf\u00E4sser.txt";
40
44
public void testUtf8FileRoundtripExplicitUnicodeExtra()
41
45
throws IOException {
42
46
testFileRoundtrip(CharsetNames.UTF_8, true, true);
45
50
public void testUtf8FileRoundtripNoEFSExplicitUnicodeExtra()
46
51
throws IOException {
47
52
testFileRoundtrip(CharsetNames.UTF_8, false, true);
50
56
public void testCP437FileRoundtripExplicitUnicodeExtra()
51
57
throws IOException {
52
58
testFileRoundtrip(CP437, false, true);
55
62
public void testASCIIFileRoundtripExplicitUnicodeExtra()
56
63
throws IOException {
57
64
testFileRoundtrip(CharsetNames.US_ASCII, false, true);
60
68
public void testUtf8FileRoundtripImplicitUnicodeExtra()
61
69
throws IOException {
62
70
testFileRoundtrip(CharsetNames.UTF_8, true, false);
65
74
public void testUtf8FileRoundtripNoEFSImplicitUnicodeExtra()
66
75
throws IOException {
67
76
testFileRoundtrip(CharsetNames.UTF_8, false, false);
70
80
public void testCP437FileRoundtripImplicitUnicodeExtra()
71
81
throws IOException {
72
82
testFileRoundtrip(CP437, false, false);
75
86
public void testASCIIFileRoundtripImplicitUnicodeExtra()
76
87
throws IOException {
77
88
testFileRoundtrip(CharsetNames.US_ASCII, false, false);
83
94
* 7-ZIP doesn't use EFS for strings that can be encoded in CP437
84
95
* - which is true for OIL_BARREL_TXT.
86
98
public void testRead7ZipArchive() throws IOException {
87
99
File archive = getFile("utf8-7zip-test.zip");
88
100
ZipFile zf = null;
368
388
public void testUtf8Interoperability() throws IOException {
369
File file1 = super.getFile("utf8-7zip-test.zip");
370
File file2 = super.getFile("utf8-winzip-test.zip");
389
File file1 = getFile("utf8-7zip-test.zip");
390
File file2 = getFile("utf8-winzip-test.zip");
372
392
testFile(file1,CP437);
373
393
testFile(file2,CP437);