Bug 52519 - XMLSchemaAssertion uses JMeter JVM file.encoding instead of response encoding
XMLSchemaAssertion uses JMeter JVM file.encoding instead of response encoding
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: Main
2.5.1
All All
: P2 normal (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2012-01-24 19:01 UTC by Philippe Mouawad
Modified: 2012-01-24 19:07 UTC (History)
1 user (show)



Attachments
Test Plan (5.19 KB, application/octet-stream)
2012-01-24 19:01 UTC, Philippe Mouawad
Details
XSD (299 bytes, application/xml)
2012-01-24 19:01 UTC, Philippe Mouawad
Details
sample.jsp (122 bytes, application/xml)
2012-01-24 19:01 UTC, Philippe Mouawad
Details

Note You need to log in before you can comment on or make changes to this bug.
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