java 对于表情和特殊字符的转码解码处理

  • 转码然后插入到DB当中

    URLEncoder.encode("", "utf-8")

  • 解码然后显示到页面当中

    URLDecoder.decode("", "utf-8")