hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Sahnwaldt (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HTTPCLIENT-691) URI does not handle non-ASCII characters in host names correctly
Date Fri, 21 Sep 2007 17:15:51 GMT

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529508
] 

Christopher Sahnwaldt commented on HTTPCLIENT-691:
--------------------------------------------------

When I posted the description, JIRA apparently noticed that the string was a URL... let's
try again:

URI uri = new URI("http"+"://bär.de/bär?bär=eis", false);
System.out.println(uri.getHost());
System.out.println(uri.getPath());
System.out.println(uri.getQuery());
System.out.println(uri.isHostname());

b?r.de
/bär
bär=eis
false


> URI does not handle non-ASCII characters in host names correctly
> ----------------------------------------------------------------
>
>                 Key: HTTPCLIENT-691
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-691
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>            Reporter: Christopher Sahnwaldt
>            Priority: Minor
>
> URI uri = new URI("http://www.eisbär.de/eisbär?eis=bär", false);
> System.out.println(uri.getHost());
> System.out.println(uri.getPath());
> System.out.println(uri.getQuery());
> prints
> www.eisb?r.de
> /eisbär
> eis=bär

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Mime
View raw message