Open GoogleCodeExporter opened 8 years ago
test cases:
public void testHtmlEncodeStrSurrogatePair()
{
String inStr = new String (new int[]{0x2f804}, 0, 1);
String expected = "你";
String result;
result = htmlCodec.encode(EMPTY_CHAR_ARRAY, inStr);
assertEquals(expected, result);
}
and
public void testHtmlDecodeHexEntititesSurrogatePair()
{
String expected = new String (new int[]{0x2f804}, 0, 1);
assertEquals( expected, htmlCodec.decode("你") );
assertEquals( expected, htmlCodec.decode("你") );
}
Original comment by julian.r...@googlemail.com
on 4 Mar 2013 at 1:38
Original issue reported on code.google.com by
julian.r...@googlemail.com
on 1 Mar 2013 at 4:36