开发者

"URLEncoder cannot be resolved" - URLEncoder.encode(p.getValue(),"UTF-8");

I´ve seen similars code that use this but i gives me this error "URLEncoder cannot be resolved" on this line:

String paramString = p.getName() + "=" + URLEncoder.encode(p.getValue(),"UTF-8");

It says the function is enco开发者_运维知识库de(String s, String enc) On "enc" it says the encoded scheme to be used.

I´m running Eclipse SDK Version: 3.6.1 and i don´t know how to solve this error.


Are you possibly missing an "import java.net.URLEncoder"? Eclipse should recommend adding that if you click on the icon on the left side next to the line.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜