Bug 31184

Summary: Japanese JDBC response data can not be displayed correctly in view results Tree
Product: JMeter - Now in Github Reporter: Gyota Kondo <gyota>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: minor    
Priority: P3    
Version: 2.0.1   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Gyota Kondo 2004-09-12 17:51:10 UTC
Currently, JDBC response data is set useing String.getByte() in JDBC sampler 
code.
This means that JDBC response data is encoded using platform default encoding.
But SampleResult.dataEncoding is not set in JDBC sampler.
If dataEncoding isn't set, view results tree get string using default 
encoding "ISO-8859-1".

so, I think, SampleResult.dataEncoding should be set as platform default 
encoding as following:

  res.setDataType(SampleResult.TEXT);
  res.setDataEncoding(System.getProperty("file.encoding"));

I confirmed this code works.
thak you,
Comment 1 Sebb 2005-07-11 00:48:02 UTC
Applied to code for version 2.1.
Comment 2 The ASF infrastructure team 2022-09-24 20:37:33 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1441