frida-python icon indicating copy to clipboard operation
frida-python copied to clipboard

emoji bytes in JSON data cause decod error

Open kunzhipeng opened this issue 5 years ago • 0 comments

I tried to hook a java method witch take a "org.json.JSONObject" argument.

Usually it works well, console.log() can properly print out the "org.json.JSONObject" argument data. But when then JSON data contains emoji, it always reports error like "Error: can't decode byte 0xed in position...".

My test environment: Android 5.5.1 frida-server-12.7.5-android-x86 python frida.version == '12.7.5'

I also tried frida-server-12.7.6 which relased yesterday, still sot same error.

kunzhipeng avatar Oct 09 '19 10:10 kunzhipeng