Bug 64075

Summary: Japanease Shift-JIS string contain some specific character cause text broken at script recording.
Product: JMeter - Now in Github Reporter: Takashi Imoto <t-imoto>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: NEEDINFO ---    
Severity: critical CC: naveen.nandwani, p.mouawad
Priority: P2    
Version: 5.2.1   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: Sample case of Shift-JIS text broken.

Description Takashi Imoto 2020-01-15 07:38:31 UTC
Created attachment 36964 [details]
Sample case of Shift-JIS text broken.

JMeter5.2 fixed Japanease Shift-JIS problem, by setting Encode at script record. as #63130.

But Japanease Character that contain some specific character like "新" case, text broke.

I attached sample case as JSP file.
It's file run on tomcat, and setting encoding as "Shift-JIS" at JMeter, then record sample case, it cause text broken.

I think it is due to difference of encoding specification of browser and Java.
I replace encoding library to apache encoding library, it can resolve.

We already create fixed patch, if it recognize bug, we will pull request this patch.
Comment 1 Philippe Mouawad 2020-03-08 15:12:03 UTC
Hello,
Yes please provide a PR with JUnit and non regression testing as this part is very sensitive.

Thank you
Regards
Comment 2 Philippe Mouawad 2020-04-26 16:48:17 UTC
*** Bug 63130 has been marked as a duplicate of this bug. ***
Comment 3 The ASF infrastructure team 2022-09-24 20:38:18 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5225