Skip to content

Commit 800bfca

Browse files
committed
Fix mangled chars (was e-acute, see r799815)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1157579 13f79535-47bb-0310-9956-ffa450edef68
1 parent 45c71b7 commit 800bfca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/org/apache/commons/codec/binary/Base64Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ public void testBase64() {
9393
encodedContent = StringUtils.newStringUtf8(encodedBytes);
9494
assertTrue("encoding hello world", encodedContent.equals("SGVsbG8gV29ybGQ="));
9595

96-
// bogus characters to decode (to skip actually)
97-
byte[] decode = b64.decode("SGVsbG{������}8gV29ybGQ=");
96+
// bogus characters to decode (to skip actually) {e-acute*6}
97+
byte[] decode = b64.decode("SGVsbG{\u00e9\u00e9\u00e9\u00e9\u00e9\u00e9}8gV29ybGQ=");
9898
String decodeString = StringUtils.newStringUtf8(decode);
9999
assertTrue("decode hello world", decodeString.equals("Hello World"));
100100
}

0 commit comments

Comments
 (0)