Help post Is it possible to write a Chinese to URLencode function script?

Hello everyone, I am from China. I am currently confused whether it is possible to convert Chinese characters to URLencode encoding, such as “朋友你好”. Very much looking forward to and thank you for your reply


A little clue Picture attachment, because information containing Chinese characters cannot be captured in the terminal, usually through /system script debugging, Chinese characters can be displayed normally in the log. The data sent is also shown below. I tried many methods but nothing worked. I’d like to ask if anyone has experience in this area. Thanks. :smiley:

Translation from Google
A little clue.jpg

朋友你好 (Hello friend) URL encoded on UTF-8 is %E6%9C%8B%E5%8F%8B%E4%BD%A0%E5%A5%BD

And \c5\f3\d3\d1\c4\e3\ba\c3 on UTF-8 is not 朋友你好

\c5\f3\d3\d1\c4\e3\ba\c3 is 朋友你好 only on EUC-CN encoding format, and I do not realize anything with that encoding.
https://en.wikipedia.org/wiki/Extended_Unix_Code


对不起

谢谢您的回复

I’ve been looking for a long time and still haven’t found a solution.