Description
Code sample:
public static void main(String[] args) throws Exception { System.out.println(new java.net.URI("http://example.com/🙈").getPath()); // Prints /🙈 System.out.println(new URIBuilder("http://example.com/" + java.net.URLEncoder.encode("🙈", "UTF-8")).getPath()); // Prints /🙈 System.out.println(new URIBuilder().setPathSegments(Collections.singletonList("🙈")).getPath()); // Prints /🙈 System.out.println(new URIBuilder().setPath("/🙈").getPath()); // Prints /🙈 System.out.println(new URIBuilder("http://example.com/🙈").getPath()); // Prints /=H }
In the last example, URIBuilder seems to have turned "/🙈" into "/=H".