简体   繁体   English

Android 显示人类可读的字符串

[英]Android display human readable string

I have the following string: Don%E2%80%99t%20Have%20a%20Login?我有以下string: Don%E2%80%99t%20Have%20a%20Login? how to convert it to human readable format?如何将其转换为人类可读的格式?

The text is url encoded.文本是 url 编码的。 To decode, use the URLDecoder要解码,请使用URLDecoder

String result = java.net.URLDecoder.decode(url, "UTF-8");

Source来源

If you want it in String,如果你想要它在字符串中,

String result = java.net.URLDecoder.decode(url, "UTF-8");

If you want it in text form then如果你想要它的文本形式,那么

It's simple.这很简单。

-> Paste your string and select all text. -> 粘贴您的字符串并选择所有文本。

-> Go to Plugins . -> 转到插件

-> Go to MIME Tools -> 转到MIME 工具

-> Click URL Decode -> 点击URL 解码

Simple :-)简单:-)

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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