Brida icon indicating copy to clipboard operation
Brida copied to clipboard

cannot process Chinese characters

Open gfctam opened this issue 2 years ago • 1 comments

I got below errors when I was playing with brida plugin with chinese character contains in the request.

image

Is anyone have experience with this issue so far and may be have some clues how to fix this issue?

Thanks

gfctam avatar May 16 '22 08:05 gfctam

Hi @gfctam

It is better to avoid to pass non UTF-8 chars back and forth using Pyro.

My advice is to encode/decode them using Base64 or ASCII-HEX. Brida offers all the necessary functions. When you create a plugin, you can decode/encode input/output to/from your Frida hooks using graphical buttons. On your JS code you have to encode/decode input/output using the same algorithm, using NodeJS dedicated functions or native ones from the platform you are working on.

Federico

federicodotta avatar Jun 05 '22 09:06 federicodotta