Changing umlaut to unicode sequence
This commit is contained in:
@@ -125,7 +125,7 @@ public class RestTemplateIntegrationTests {
|
||||
|
||||
@Test
|
||||
public void uri() throws InterruptedException, URISyntaxException {
|
||||
String result = template.getForObject(URI + "/uri/{query}", String.class, "Z<EFBFBD>rich");
|
||||
String result = template.getForObject(URI + "/uri/{query}", String.class, "Z\u00fcrich");
|
||||
assertEquals("Invalid request URI", "/uri/Z%FCrich", result);
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ public class UriTemplateTests {
|
||||
@Test
|
||||
public void expandEncoded() throws Exception {
|
||||
UriTemplate template = new UriTemplate("http://example.com//hotel list/{hotel}");
|
||||
URI result = template.expand("Z<EFBFBD>rich");
|
||||
URI result = template.expand("Z\u00fcrich");
|
||||
assertEquals("Invalid expanded template", new URI("http://example.com//hotel%20list/Z%FCrich"), result);
|
||||
}
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ public class UriUtilsTest {
|
||||
assertEquals("Invalid encoded URI", "http://www.ietf.org/rfc/rfc3986.txt",
|
||||
UriUtils.encodeUri("http://www.ietf.org/rfc/rfc3986.txt", ENC));
|
||||
assertEquals("Invalid encoded URI", "http://www.google.com/?q=z%FCrich",
|
||||
UriUtils.encodeUri("http://www.google.com/?q=z<EFBFBD>rich", ENC));
|
||||
UriUtils.encodeUri("http://www.google.com/?q=z\u00fcrich", ENC));
|
||||
assertEquals("Invalid encoded URI",
|
||||
"http://arjen:foobar@java.sun.com:80/javase/6/docs/api/java/util/BitSet.html?foo=bar#and(java.util.BitSet)",
|
||||
UriUtils.encodeUri(
|
||||
|
||||
Reference in New Issue
Block a user