DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18301>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18301

Fixed deprecation warning for URLEncoder.encode(String) method.





------- Additional Comments From [EMAIL PROTECTED]  2003-03-26 22:54 -------
I think it can be INVALIDated, if the question is solely the deprecation 
warning under JDK 1.4. OTOH, if the issue is that you want to make sure URLs 
are encoded accordingly to the response charset, you'd still need to replace

URLEncoder.encode(url)

with

URLEncoder.encode(new String(url.getBytes(encoding)))

after weighting the caveat I mentioned in the other post, namely that with an 
exotic platform default encoding (go no further than UTF-8 for an example) you 
can easily get an exception because not all byte sequences you obtain through 
getBytes() are valid for constructing a string in the default encoding.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to