DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=28878>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28878 Result Data File's encoding is not 'UTF-8' Summary: Result Data File's encoding is not 'UTF-8' Product: JMeter Version: 2.0.0 Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Main AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Result data file is written by xml format, and its description of encoding is 'UTF-8'. But actual result data file's encoding is not any encoding. The following modify enable a correct result data file for multibyte chaset (i.e. japanese, chinese, korean, ...). diff -rcbB -I '^// $Header:' ./core/org/apache/jmeter/reporters/ResultCollector.java /home/shuyo/jm eter/jakarta-jmeter- 2.0.0/src/core/org/apache/jmeter/reporters/ResultCollector.java *** ./core/org/apache/jmeter/reporters/ResultCollector.java Mon Mar 8 08:33:03 2004 --- /home/shuyo/jmeter/jakarta-jmeter- 2.0.0/src/core/org/apache/jmeter/reporters/ResultCollector.java Thu Apr 8 16:07:05 2004 *************** *** 322,333 **** private String getSerializedSampleResult(SampleResult result) throws SAXException, IOException, ConfigurationException { ! ByteArrayOutputStream tempOut = new ByteArrayOutputStream(); serializer.serialize( tempOut, SaveService.getConfiguration(result, getFunctionalMode())); String serVer = tempOut.toString(); return serVer.substring( serVer.indexOf(System.getProperty("line.separator"))); --- 322,337 ---- private String getSerializedSampleResult(SampleResult result) throws SAXException, IOException, ConfigurationException { ! /* ByteArrayOutputStream tempOut = new ByteArrayOutputStream(); serializer.serialize( tempOut, SaveService.getConfiguration(result, getFunctionalMode())); String serVer = tempOut.toString(); + */ + String serVer = + serializer.serialize( + SaveService.getConfiguration(result, getFunctionalMode())); return serVer.substring( serVer.indexOf(System.getProperty("line.separator"))); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
