diff --git a/setup.py b/setup.py index 2fde599..ac3d6ef 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,8 @@ def _buildBinary(): try: if sys.platform == 'darwin': - open('frida-android-hook/androidhook','w+').write(setup) + with open('frida-android-hook/androidhook','w+') as f: + f encoding='utf_8').write(setup) os.system('chmod +x frida-android-hook/androidhook') elif sys.platform == 'linux': with open('frida-android-hook/androidhook','w+') as f: