mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-27 00:55:57 +03:00
[GH-ISSUE #1011] XML Charset WINDOWS-1251 issue #1005
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#1005
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 @azhabort on GitHub (Oct 1, 2021).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1011
Originally assigned to: @NghiaTranUIT on GitHub.
Proxyman version? (Ex. Proxyman 1.4.3)
Version 2.33.0 (23300)
macOS Version? (Ex. mac 10.14)
12.0 Beta (21A5522h)
Steps to reproduce
<?xml version="1.0" encoding="windows-1251" ?>Expected behavior
XML data with cyrillic characters inside should be encoded correctly.
Screenshots (optional)
raw preview tab:


xml body preview tab
@NghiaTranUIT commented on GitHub (Oct 1, 2021):
Thanks for the report @azhabort 👍 It's definitely a bug 🐞
I will fix it and send you a beta soon
@azhabort commented on GitHub (Oct 1, 2021):
@NghiaTranUIT looks like this issue was introduced in 2.33.0 version and relates to fix in the https://github.com/ProxymanApp/Proxyman/issues/989
@NghiaTranUIT commented on GitHub (Oct 1, 2021):
If you don't mind, please try this beta build and let me know if it works: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.33.0_Fix_XML_Encoding.dmg
@NghiaTranUIT commented on GitHub (Oct 1, 2021):
Technically, I use NSXMLDocument to prettify the XML content. To parsing the encoding,
CFStringConvertIANACharSetNameToEncodingis used to convert IANA name to NSString.Encoding that XMLDocument understand.However, for some reason, it doesn't work in your cases (windows-2151).
If the beta build doesn't work. I might find alternative solution 👍 @azhabort
@azhabort commented on GitHub (Oct 1, 2021):
@NghiaTranUIT Thanks! I've checked Proxyman_2.33.0_Fix_XML_Encoding.dmg and can confirm that issue is fixed there!
@NghiaTranUIT commented on GitHub (Oct 2, 2021):
Awesome 😄
@NghiaTranUIT commented on GitHub (Oct 2, 2021):
Hey @azhabort please try this build too: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.33.0_XML_encoding.dmg
I refactor and use a different library than NSXMLDocument to properly parse the XML content with a given encoding.
This build would fix all encoding issue, include #989 👍
@azhabort commented on GitHub (Oct 15, 2021):
@NghiaTranUIT Hi! I've checked latest 2.34 version and issue is fixed there.

But alignment is missing now:
@NghiaTranUIT commented on GitHub (Oct 15, 2021):
Sorry for this. Let me check and fix it 😢
@NghiaTranUIT commented on GitHub (Oct 15, 2021):
@azhabort please check this build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.34.0_Fix_XML_Prettify.dmg
Sorry for my mistake, there is one param is missing 🙀
I will roll out a hot fix tomorrow 👍
@azhabort commented on GitHub (Oct 15, 2021):
@NghiaTranUIT I've checked this version and alignment is finally there!
