Proxyman
Proxyman copied to clipboard
script export file unreadable code (中文乱码)
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
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 👍
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.