<<Re-sending as in my previous mail HTML page is not visible>> Hi team,
I have a HTML page having input tag with attributes name=”search” and value="<%= search %>. Please find below code snippet of HTML page. <%@ 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"); } %> <html> <head> <meta charset="Windows-31J"> </head> <body> <h1>Please click on submit button to send the request</h1><br><br> <form method="post" action="page2.jsp"> <input type="text" name="search" value="<%= search %>" size="80"> <input type="submit" value=" Submit "> </form> <a href="../">Back</a> </body> </html> Although for value attribute we are doing the encoding/decoding for all the different encodings (UTF-8, Shift_JIS etc.). But we just want to confirm that whether we should do the encoding/decoding of the name attribute also for all the different encodings. As per our discussion with one of the Japanese developer also, name is having a static value in the page and it has been used by the developers in the English only. So just want to have some input from other team members also. Regards, Sanjay Chaurasia From: Sanjay Chaurasia Sent: Monday, June 3, 2019 11:38 AM To: dev@jmeter.apache.org Subject: Is different encoding/decoding required for the name attribute of input tag of HTML page? Hi team, I have a HTML page having input tag with attributes name=”search” and value="<%= search %>. Please find below code snippet of HTML page. [<%@ 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"); } %> <html> <head> <meta charset="Windows-31J"> </head> <body> <h1>Please click on submit button to send the request</h1><br><br> <form method="post" action="page2.jsp"> <input type="text" name="search" value="<%= search %>" size="80"> <input type="submit" value=" Submit "> </form> <a href="../">Back</a> </body> </html>] Although for value attribute we are doing the encoding/decoding for all the different encodings (UTF-8, Shift_JIS etc.). But we just want to confirm that whether we should do the encoding/decoding of the name attribute also for all the different encodings. As per our discussion with one of the Japanese developer also, name is having a static value in the page and it has been used by the developers in the English only. So just want to have some input from other team members also. Regards, Sanjay Chaurasia
image002.wmz
Description: image002.wmz