Added URLDecoder cUnicode support
This commit is contained in:
parent
bf235694eb
commit
930ad2b2f3
3 changed files with 40 additions and 20 deletions
|
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue