Skip to content

微信用户的昵称中有特殊字符时,获取用户信息出错 #4

@hrwhat

Description

@hrwhat

接口:WxUtil.getWechat().user().getUser(openId)
错误信息:
me.hao0.common.exception.JsonException: com.fasterxml.jackson.core.JsonParseException: Illegal unquoted character ((CTRL-CHAR, code 20)): has to be escaped using backslash to be included in string value
需要在 me.hao0.common.json.Jsons 工具类中设置 mapper.configure(Feature.ALLOW_UNQUOTED_CONTROL_CHARS, true) ;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions