游客xqlosllfyf7vw_个人页

游客xqlosllfyf7vw
0
1
0

个人介绍

暂无个人介绍

擅长的技术

获得更多能力
通用技术能力:

暂时未有相关通用技术能力~

云产品技术能力:

暂时未有相关云产品技术能力~

阿里云技能认证

详细说明
暂无更多信息

2019年08月

正在加载, 请稍后...
暂无更多信息
  • 回答了问题 2019-08-07

    java 如何判断 一个字符串是否被urlencode 过

    public static String getUrlEncode(String str) { if (str == null || ''.equals(str)) { return ''; } try { str = URLEncoder.encode(str, 'UTF-8'); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return str; } public static String getUrlDecode(String str) { if (str == null || ''.equals(str)) { return ''; } try { str = URLDecoder.decode(str, 'UTF-8'); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return str; } public static boolean isUrlEncode(String en){ if (StringUtils.isEmpty(en)){ return false; } return !(en.length()==getUrlDecode(en).length()); }
    踩0 评论0
正在加载, 请稍后...
滑动查看更多
正在加载, 请稍后...
暂无更多信息