URLDecoder解析url编码

try {
    strJson = URLDecoder.decode(strJson, "utf-8");
} catch (UnsupportedEncodingException e) {
    logger.error("解析json参数错误", e);

    rm.setCode("400");
    rm.setMsg("解析json参数错误");
    return rm;
}

 

posted @ 2016-05-23 11:06  月半流云  阅读(215)  评论(0编辑  收藏  举报