Japanease Shift-JIS string contain some specific character cause text broken at script recording.
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 5
Description
**Takashi Imoto** ([Bug 64075](https://bz.apache.org/bugzilla//show_bug.cgi?id=64075&redirect=false)):
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.
Created attachment [index.jsp](https://apache.github.io/jmeter-bugzilla-attachments/75/64075/36964/index.jsp): Sample case of Shift-JIS text broken.
index.jsp
````
<%@ page contentType="text/html; charset=Windows-31J" pageEncoding="UTF-8" %>
<%
String search = "新規";
if (request.getParameter("search") != null) {
search = new String(request.getParameter("search").getBytes("8859_1"), "Windows-31J");
}
%>
Please click on submit button to send the request
1.新規
2.てすと
````
Severity: critical
OS: All
Duplicates:
* https://github.com/apache/jmeter/issues/4996
Contributor guide
Assessment
This issue has not been assessed yet.