开发者

List of encodeings with URLEncoder encode method

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜