URLEn codeR连接code / URLDe codeR德code在Java(安卓)codeR、URLEn、code、Java

2023-09-13 01:50:40 作者:从心动到古稀

我想使用的应用程序的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".