sayonatinnofied / rest-client

Automatically exported from code.google.com/p/rest-client
Apache License 2.0
0 stars 0 forks source link

Apostrophe in tag content displays incorrect characters when auto ident turned on #158

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Turn auto indent on
2. Make body display display <tag>Google’s</tag>
3. displays as: <tag>Google’s</tag>

What is the expected output? What do you see instead?
<tag>Google’s</tag>

What version of the product are you using? On what operating system?
3.1 XP

Please provide any additional information below.

Original issue reported on code.google.com by jay.mcc...@ft.com on 5 Nov 2012 at 3:25

GoogleCodeExporter commented 8 years ago
The problem could be the encoding defined in Content-type is wrong. Please 
verify this at your end.

Original comment by subwiz on 5 Nov 2012 at 3:38

GoogleCodeExporter commented 8 years ago
I don't believe so.

The exact same response displays incorrectly when 'Auto-indent response body' 
is turned on. It is fine when turned off.

The response header attribute is:
Content-Type: text/plain; charset=utf-8

Original comment by jay.mcc...@ft.com on 5 Nov 2012 at 4:14

GoogleCodeExporter commented 8 years ago
Ok. Let me look into it.

Original comment by subwiz on 5 Nov 2012 at 4:43

GoogleCodeExporter commented 8 years ago
Apologies, the response header with/without indenting is:
Content-Type: application/xml;charset=utf-8

Original comment by jay.mcc...@ft.com on 5 Nov 2012 at 4:44

GoogleCodeExporter commented 8 years ago
Identified the issue, and fixed it. The problem was in the XOM indentation API. 
That has now been replaced with DOM API.

Thanks for reporting the issue.

Also, I should plan to report this back to XOM.

Original comment by subwiz on 5 Nov 2012 at 5:25

GoogleCodeExporter commented 8 years ago
Note: The indentation output will differ from the before-fix version.

Original comment by subwiz on 5 Nov 2012 at 5:27