ngduyquockhanh / JScriptor

Pre-Script and Post-Script like Postman extension for Burpsuite
18 stars 3 forks source link

jsrequest.bodyToString() and other functions do not support the Chinese language #8

Open zhangwenbo1229 opened 3 months ago

zhangwenbo1229 commented 3 months ago

When I use jsrequest.bodyToString() function to get the request body which contains Chinese, it will get messy code and cause script error, how can I deal with this situation?

request: image

log: image

Pre-script: body = jsrequest.body; jslogger.logs.push(body);