mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-27 00:55:57 +03:00
[GH-ISSUE #989] Response XML formatting tab doesn't work when response charset is not UTF-8 #984
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#984
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Bertrand on GitHub (Sep 10, 2021).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/989
Originally assigned to: @NghiaTranUIT on GitHub.
Description
When inspecting XML responses encoded in
ISO-8859-1charset (and probably any encoding other than UTF-8) , the XML formatting tab displays "Invalid XML Data" instead of the actual XML Data.This happens even tough the
content-typeheader properly specifies the response charset:Possible root cause
The
charsetparameter in thecontent-typeHTTP response header is probably ignored and the response is wrongly interpreted as UTF-8.Proxyman version
Version 2.32.1 (23210)
macOS Version
mac 11.5.2
Steps to reproduce
The attached
test-charset.tar.gzarchive contains oneUTF-8-encoded XML file and oneISO-8859-1-encoded xml file.It also contains a simple node project that uses the
servenpm module that creates a local http server serving the two files with their correct charset set in thecontent-typeheader.servenpm module, actually)servercommandObserved behavior
response.xmlrequest ✅response.ISO-8859-1.xmlinstead of the actual data 🚫Expected behavior
Both XML responses should be formatted correcly
@NghiaTranUIT commented on GitHub (Sep 10, 2021):
It's definitely a bug because Proxyman hasn't supported ISO-8859-1 charset parsing the XML 😄
To workaround, I recommend previewing the XML file on the Body Tab.
Let me fix and send you a Beta build soon 👍
@NghiaTranUIT commented on GitHub (Sep 10, 2021):
Hey @Bertrand please check out this beta build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.32.1_Fix_Charset.dmg
From now, Proxyman will get a charset in ContentType and try to parse it properly. Otherwise, it will "guess" 👍
@Bertrand commented on GitHub (Sep 13, 2021):
Hey @NghiaTranUIT, it works like a charm now 😃 😃
Many thanks !!!