From 8a19a0e2b91511cccd34368f62409e87a15a9c37 Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Sat, 30 Jun 2012 16:01:56 +0000 Subject: [PATCH] Escape non-ASCII chars using \uxxxx notation git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1355754 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/http/client/utils/TestURIBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httpclient/src/test/java/org/apache/http/client/utils/TestURIBuilder.java b/httpclient/src/test/java/org/apache/http/client/utils/TestURIBuilder.java index dd5c1a474..aa55e1dec 100644 --- a/httpclient/src/test/java/org/apache/http/client/utils/TestURIBuilder.java +++ b/httpclient/src/test/java/org/apache/http/client/utils/TestURIBuilder.java @@ -169,7 +169,7 @@ public void testAgainstURI() throws Exception { // Check that the URI generated by URI builder agrees with that generated by using URI directly final String scheme="https"; final String host="localhost"; - final String specials="/abcd!$&*()_-+.,=:;'~@[]?<>|#^%\"{}\\£`¬¦xyz"; // N.B. excludes space + final String specials="/abcd!$&*()_-+.,=:;'~@[]?<>|#^%\"{}\\\u00a3`\u00ac\u00a6xyz"; // N.B. excludes space URI uri = new URI(scheme, specials, host, 80, specials, specials, specials); URI bld = new URIBuilder() @@ -198,7 +198,7 @@ public void testAgainstURIEncoded() throws Exception { // Check that the encoded URI generated by URI builder agrees with that generated by using URI directly final String scheme="https"; final String host="localhost"; - final String specials="/ abcd!$&*()_-+.,=:;'~<>/@[]|#^%\"{}\\`xyz"; // N.B. excludes £¬¦ + final String specials="/ abcd!$&*()_-+.,=:;'~<>/@[]|#^%\"{}\\`xyz"; // N.B. excludes \u00a3`\u00ac\u00a6 final String formdatasafe = "abcd-_.*zyz"; URI uri = new URI(scheme, specials, host, 80, specials, formdatasafe, // TODO replace with specials when supported