I can\'t convert a String to UTF-8 in android. please help me!!
s1=URLEncoder.encode(\"臺北市\")
result : %EF%BF%BDO%EF%BF%BD_%EF%BF%BD%
%EF%BF%BDO%EF%BF%BD_%EF%BF%BD%
In http://developer.android.com/reference/java/net/URLEncoder.html you can read that the you used is deprecated and that you should use static String encode(String s, String charsetName)
static String encode(String s, String charsetName)
So URLEncoder.encode("臺北市", "utf-8") should do the trick.
URLEncoder.encode("臺北市", "utf-8")