Proxyman icon indicating copy to clipboard operation
Proxyman copied to clipboard

script export file unreadable code (中文乱码)

Open ibmsoft opened this issue 3 years ago • 2 comments

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

err

ibmsoft avatar Sep 02 '22 00:09 ibmsoft

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 avatar Sep 02 '22 01:09 NghiaTranUIT

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.

NghiaTranUIT avatar Sep 04 '22 02:09 NghiaTranUIT