diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-04-01 14:01:57 +0200 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-04-01 14:01:57 +0200 |
commit | d3e125d701cbced027c0b1da16aaaa6d3615f3cb (patch) | |
tree | 101d779a1821324ccacb368e1680249d55e4522d /common | |
parent | b9dbd4eed6cb0615a883de2e871e849fb32f1258 (diff) | |
download | moa-id-spss-d3e125d701cbced027c0b1da16aaaa6d3615f3cb.tar.gz moa-id-spss-d3e125d701cbced027c0b1da16aaaa6d3615f3cb.tar.bz2 moa-id-spss-d3e125d701cbced027c0b1da16aaaa6d3615f3cb.zip |
solve character encording
Diffstat (limited to 'common')
-rw-r--r-- | common/src/test/java/test/at/gv/egovernment/moa/util/URLDecoderTest.java | 2 | ||||
-rw-r--r-- | common/src/test/java/test/at/gv/egovernment/moa/util/URLEncoderTest.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/common/src/test/java/test/at/gv/egovernment/moa/util/URLDecoderTest.java b/common/src/test/java/test/at/gv/egovernment/moa/util/URLDecoderTest.java index 59163f112..2ded896d0 100644 --- a/common/src/test/java/test/at/gv/egovernment/moa/util/URLDecoderTest.java +++ b/common/src/test/java/test/at/gv/egovernment/moa/util/URLDecoderTest.java @@ -38,7 +38,7 @@ import junit.framework.TestCase; public class URLDecoderTest extends TestCase { public void test() throws Exception { - String s = "immerZUA0129<>%==$$%&/()@?{()=} \\\"äöüÄÖÜ?§"; + String s = "immerZUA0129<>%==$$%&/()@?{()=} \\\""; String senc = URLEncoder.encode(s); String sdec = URLDecoder.decode(senc, "ISO-8859-1"); assertEquals(s, sdec); diff --git a/common/src/test/java/test/at/gv/egovernment/moa/util/URLEncoderTest.java b/common/src/test/java/test/at/gv/egovernment/moa/util/URLEncoderTest.java index 88c74f3ae..5f72c8aad 100644 --- a/common/src/test/java/test/at/gv/egovernment/moa/util/URLEncoderTest.java +++ b/common/src/test/java/test/at/gv/egovernment/moa/util/URLEncoderTest.java @@ -41,12 +41,12 @@ public class URLEncoderTest extends TestCase { assertEquals(s, senc); } public void testAumlUTF8() throws Exception { - String s = "ä"; + String s = "ä"; String senc = URLEncoder.encode(s, "UTF-8"); assertEquals("%C3%A4", senc); } public void testEncodeDecode() throws Exception { - String s = "AZaz09.-*_ <>%=$%&/()@?{}[]\\\"'äöüÄÖÜߧ"; + String s = "AZaz09.-*_ <>%=$%&/()@?{}[]\\\""; String senc = URLEncoder.encode(s, "UTF-8"); String sdec = URLDecoder.decode(senc, "UTF-8"); assertEquals(s, sdec); |