URLEn codeR连接code / URLDe codeR德code在Java(安卓) [英] URLEncoder encode / URLDecoder decode in java (Android)

查看:188
本文介绍了URLEn codeR连接code / URLDe codeR德code在Java(安卓)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用的应用程序的URLEn codeR / URLDe codeR类(java.net.URLEn codeR / URLDe codeR)和方法:EN code(字符串s,字符串ENC)/德code(字符串s,字符串ENC),但我不知道有什么可以为字符串参数ENC的价值? 我想EN code /德code。在X WWW的形式,urlen codeDMIME内容类型。 感谢您的帮助。

I want to use the URLEncoder/URLDecoder class (java.net.URLEncoder/URLDecoder) in an application and the methods : encode(String s, String enc)/decode(String s, String enc), but I don't know what can be the value of the String argument enc? I want to encode/decode in the "x-www-form-urlencoded" MIME content type. Thank you for your help.

推荐答案

编码参数是您正在使用的字符编码​​。 例如UTF-8

The encoding parameter is the character encoding you're using. For example "UTF-8".

这篇关于URLEn codeR连接code / URLDe codeR德code在Java(安卓)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆