hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <http-as...@dubioso.net>
Subject Re: can i set url encoding?
Date Mon, 19 Mar 2007 17:59:35 GMT
Hallo Paranoid,

there is no standard way of determining an encoding for
URLs. The standard is US-ASCII, nothing else allowed.
A common non-standard is UTF-8. Otherwise, you'll have
to guess. You could try to fetch some page from the
server and see what encoding is used for the _content_
of that page. Of course there's no guarantee that the
same encoding will be understood for URLs.
Odi provides some details on URL character encoding in
our Application Design FAQ, section "GET with Query":
http://wiki.apache.org/jakarta-httpclient/FrequentlyAskedApplicationDesignQuestions#head-608332884523b67a1e00f1b5f2a7a144fa58ca64

hope this helps,
  Roland

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


Mime
View raw message