https://bz.apache.org/bugzilla/show_bug.cgi?id=63129

--- Comment #2 from Naveen Nandwani <[email protected]> ---
Created attachment 36403
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36403&action=edit
Proposed changes in Source Code. Will create separate PR request.

Solution:

First Request is GET to load the base url. JMeter stores the encoding of the
page (Shift-JIS).
Second Request is POST to submit "Japanese Character", but encoding is not
available, as page is traversed for first time. If encoding of page of first
request (Shift-JIS) is used, then Japanese Character will be correctly stored.

Following is the code snippet:
contentEncoding = pageEncodings.get(urlWithoutQuery);
if(contentEncoding == null && pageEncodings.size()>0) {
     contentEncoding = new ArrayList<String>(pageEncodings.values()).get(0);
}

Get Current page encoding is null, check the pageEncoding list, if last page
encoding is available, use it.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to