You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Christopher Sahnwaldt (JIRA)" <ji...@apache.org> on 2007/09/21 19:15:51 UTC
[jira] Commented: (HTTPCLIENT-691) URI does not handle non-ASCII
characters in host names correctly
[ 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