开发者

List of encodeings with URLEncoder encode method

开发者 https://www.devze.com 2023-03-23 06:00 出处:网络
final String encodedURL = URLEncoder.encode(urlAsString, \"UTF-8\"); URL url = new URL(encodedURL); I take this code listing from somewhere over net I there is Utf-8 encodeing.
final String encodedURL = URLEncoder.encode(urlAsString, "UTF-8");
URL url = new URL(encodedURL);

I take this code listing from somewhere over net I there is Utf-8 encodeing. And the explanation for the second parameter of encode method is explained as the "encoding scheme to be used", well what is the list of supported encodings i开发者_如何学Gon android , and of course the backward compatibility is the list for supported encoding the same for 2.3 as for 1.6 ?


You can check like this instead doing "UTF-8" write HTTP. and when you write the dot (.) you'll see other encodings.

0

精彩评论

暂无评论...
验证码 换一张
取 消