String encodeStr = URLEncoder.encode(
"*-_"
,
"UTF-8"
);
encodeStr = encodeStr.replace(
"*"
,
"%2a"
);
encodeStr = encodeStr.replace(
"-"
,
"%2d"
);
String encodeStr = URLEncoder.encode(
"a a"
,
"UTF-8"
);
encodeStr = encodeStr.replace(
"+"
,
"%20"
);
http://javatechnology.net/java/url-encode/
0 件のコメント:
コメントを投稿