首页 > 试题广场 >

java中如果需要将applicationx-www-fr

[单选题]
java中如果需要将application/x-www-from-urlencode MIME字符转换为普通字符,可以使用下面哪个方法?()
  • URIEncode.encode(String s, String enc)
  • URLEncode.encode(String s, String enc)
  • URIDecode.decode(String s, String enc)
  • URLDecode.decode(String s, String enc)
只有URLDecode和URLEncode,没有URIDecode和URIEncode的
发表于 2018-07-17 17:01:07 回复(0)
它是要转成普通字符的形式,并不是要转成他这个形式
发表于 2019-02-21 16:30:36 回复(0)

URLEncode.encode(String s, String enc)

将 String 转换为application/x-www-form-urlencodedMIME 格式
URLDecode.decode(String s, String enc)
将 String 从application/x-www-form-urlencodedMIME 格式解码

编辑于 2018-01-15 13:28:07 回复(2)