mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-27 09:05:54 +03:00
[GH-ISSUE #1345] script export file unreadable code (中文乱码) #1338
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#1338
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 @ibmsoft on GitHub (Sep 2, 2022).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1345
Originally assigned to: @NghiaTranUIT on GitHub.
Proxyman version? (Ex. Proxyman 1.4.3)
3.8.0
macOS Version? (Ex. mac 10.14)
12.5.1
Steps to reproduce
`function onResponse(context, url, request, response) {
// Write to single file
// Write the Body to file with flow ID
writeToFile(response.body, "~/Desktop/sample-" + context.flow.id+".html");
// Done
return response;
}`
Expected behavior
normal
@NghiaTranUIT commented on GitHub (Sep 2, 2022):
Hey, @ibmsoft look the problem is the encoding. Can you share with me the URL that you've tested? I'd like to reproduce it on my end 👍
@NghiaTranUIT commented on GitHub (Sep 4, 2022):
Hey @ibmsoft, I investigated and discover the problem due to the string encoding.
Your website is using
<meta charset="utf-8">, but it contains invalid characters. Currently, Proxyman only supports UTF-8 String, so some characters are missing.