You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2003/05/23 05:57:59 UTC

DO NOT REPLY [Bug 8961] - utf8 url encoding not supported by deffault in jdk's older than 1.4

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=8961>.
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=8961

utf8 url encoding not supported by deffault in jdk's older than 1.4





------- Additional Comments From matt@rairyu.tk  2003-05-23 03:57 -------
I'm using JMeter against a utf-8 website with alot of Japanese content. Using
the latest tar ball (20/05/2003) this doesn't work. The posted values aren't
encoded correctly. Thus I've temporarily altered the following file(in my
source) until I can find or do a more complete solution:
"org.apache.jmeter.protocol.http.util.EncoderCache.java"
I changed: 
encodedValue = URLEncoder.encode(k);

To:
try{
  encodedValue = URLEncoder.encode(k, "utf8");
   }
catch (UnsupportedEncodingException e)
   {
     System.out.println("Don't support utf8 encoding??");
     e.printStackTrace();
   }

Yes - I know my exception handling here is bad :-p

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