Bug 64075 - Japanease Shift-JIS string contain some specific character cause text broken at script recording.
Summary: Japanease Shift-JIS string contain some specific character cause text broken ...
Status: NEEDINFO
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 5.2.1
Hardware: PC All
: P2 critical (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
: 63130 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-01-15 07:38 UTC by Takashi Imoto
Modified: 2020-04-26 16:48 UTC (History)
2 users (show)



Attachments
Sample case of Shift-JIS text broken. (659 bytes, text/plain)
2020-01-15 07:38 UTC, Takashi Imoto
Details

Note You need to log in before you can comment on or make changes to this bug.
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