Bug 52519

Summary: XMLSchemaAssertion uses JMeter JVM file.encoding instead of response encoding
Product: JMeter Reporter: Philippe Mouawad <p.mouawad>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal CC: p.mouawad
Priority: P2    
Version: 2.5.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Test Plan
XSD
sample.jsp

Description Philippe Mouawad 2012-01-24 19:01:00 UTC
Created attachment 28203 [details]
Test Plan

Using attached test plan that contains :
sample.jsp that returns XML:

<%@ page  contentType="text/xml; charset=UTF-8" %><?xml version="1.0"?>
<person>
<name>
alok ranjan é @
</name>
</person>


JMeter converts data to:
<?xml version="1.0"?>
<person>
<name>
alok ranjan é @
</name>
</person>

corrupting the é.
Comment 1 Philippe Mouawad 2012-01-24 19:01:21 UTC
Created attachment 28204 [details]
XSD
Comment 2 Philippe Mouawad 2012-01-24 19:01:51 UTC
Created attachment 28205 [details]
sample.jsp
Comment 3 Philippe Mouawad 2012-01-24 19:07:06 UTC
And add this to JVM to reproduce:
-Dfile.encoding=iso-8859-1
Comment 4 Philippe Mouawad 2012-01-24 19:07:23 UTC
Date: Tue Jan 24 19:06:18 2012
New Revision: 1235417

URL: http://svn.apache.org/viewvc?rev=1235417&view=rev
Log:
Bug 52519 - XMLSchemaAssertion uses JMeter JVM file.encoding instead of response encoding

Modified:
   jmeter/trunk/src/components/org/apache/jmeter/assertions/XMLSchemaAssertion.java
   jmeter/trunk/xdocs/changes.xml