简体   繁体   中英

Percent-encoding in an URI

I would like to know how can I convert URI:

%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9%20%D1%8F%D0%B7%D1%8B%D0%BA

to

русский язык

I know about urldecode function in PHP. I'm looking for the same function in Java(Android). Could anybody help me? Thanks.

我找到了答案:

java.net.URLDecoder.decode(URI)

看到这个 ..可能会有所帮助..它是一个直接的事情..

Uri.decode("%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9%20%D1%8F%D0%B7%D1%8B%D0%BA");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM