jira-importer opened a new issue, #1328:
URL: https://github.com/apache/httpcomponents-core/issues/1328

   **[Siqi 
Li](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=slisaasquatch)**
 opened 
**[HTTPCORE-714](https://issues.apache.org/jira/browse/HTTPCORE-714?redirect=false)**
 and commented
   
   Code sample:
   
   ```java
   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".
   
   
   ---
   
   **Affects:** 5.1.2
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to