frida / frida-tools

Frida CLI tools
Other
344 stars 93 forks source link

Use UTF-8 encoding when writing tracer handler #60

Closed AkiraNoSushi closed 3 years ago

AkiraNoSushi commented 3 years ago

Python tries to write the handler using cp1252 on Windows, which triggers an UnicodeEncodeError exception when it encounters chinese characters. Specifying UTF-8 as our encoding fixes the issue.