Bug 52519 - XMLSchemaAssertion uses JMeter JVM file.encoding instead of response encoding
Summary: XMLSchemaAssertion uses JMeter JVM file.encoding instead of response encoding
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.5.1
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
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
Comment 5 The ASF infrastructure team 2022-09-24 20:37:48 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2716