Added URLDecoder cUnicode support

This commit is contained in:
Ziver Koc 2015-12-11 14:58:30 +01:00
parent bf235694eb
commit 930ad2b2f3
3 changed files with 40 additions and 20 deletions

View file

@ -3,6 +3,8 @@ package zutil.test;
import org.junit.Test;
import zutil.parser.URLDecoder;
import java.io.UnsupportedEncodingException;
import static org.junit.Assert.assertEquals;
@ -29,7 +31,8 @@ public class URLDecoderTest {
}
@Test
public void percentMultibyteTest(){
public void percentMultibyteTest() throws UnsupportedEncodingException {
assertEquals("Ängen", java.net.URLDecoder.decode("%C3%84ngen", "UTF-8"));
assertEquals("Ängen", URLDecoder.decode("%C3%84ngen"));
}
}