Community discussions

MikroTik App
 
liuyao
just joined
Topic Author
Posts: 9
Joined: Wed Sep 04, 2019 9:14 am
Location: China

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

Wed Jan 17, 2024 4:41 am

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. :D

Translation from Google
A little clue.jpg
You do not have the required permissions to view the files attached to this post.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12014
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Help post Is it possible to write a Chinese to URLencode function script?  [SOLVED]

Wed Jan 17, 2024 6:00 pm

朋友你好 (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


对不起
 
liuyao
just joined
Topic Author
Posts: 9
Joined: Wed Sep 04, 2019 9:14 am
Location: China

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

Thu Jan 18, 2024 4:46 am

谢谢您的回复

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

Who is online

Users browsing this forum: NxtGen [Bot] and 6 guests