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

            Bug ID: 63130
           Summary: Jmeter is unable to decode Shift_JIS characters.
           Product: JMeter
           Version: 5.0
          Hardware: PC
            Status: NEW
          Severity: critical
          Priority: P2
         Component: HTTP
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: JMETER_5.1

Created attachment 36404
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36404&action=edit
Application to reproduce the scenario.

Overview: 
JMeter is unable to decode Shift_JIS (Multi-Byte) characters and resulting
garbage value. When we post the Shift_JIS  characters from browser using JMeter
HTTP(s) Test Script Recorder, we get garbage value for Shift_JIS characters in
response.
Below is the example of request and response:

Request content:  初期値大阪市 
Response content: 初期?l大阪?s

Impact of bug:

1. When End User post Shift_JIS characters using JMeter proxy, get garbage
value in response.
2. Shift_JIS (Shift Japanese Industrial Standards) encoding is used by many
Japanese company So whenever Japanese engineer uses JMeter for their
performance testing they did not get actual result.

Setup 
1. Deploy Application "jmeter_issue_Encoding_Library"(extract in
apache-tomcat-9.0.12\webapps) in Tomcat and start the tomcat(execute
"apache-tomcat-9.0.12\bin\startup.bat" .
2. Open the browser and change Proxy settings -> LAN Setting and set
Address(eg: localhost) and port(e.g.8888).
3. Run JMeter
        3.1 click on file menu-> open ->open the attached "Test Plan.jmx" file.
        3.2 Set the same port number in “HTTP(s) Test Script Recorder” and in
browser’s Network LAN Settings.
        3.3 Go to JMeter HTTP(s) Test Script Recorder -> Click Start -> Ok


Execution
1. Go to browser , open application (e.g.
http://localhost:portNumber/jmeter_issue_Encoding_Library/index.jsp)

2. Click on Submit Button.

3. View result in browser.

Expected Result: 初期大阪
Actual Result: ?ソス?ソス?ソス?ソス?ソスl?ソス?ソス?ソスs

//Refer ticket #63129 (reported for the same issue)

4. click on "Back to previous page" and click on "Submit" button again.
5. View the result in browser, this time getting 2 characters as garbage.

Expected Result: 初期大阪
Actual Result: 初期?l大阪?s

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

Reply via email to