Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

接口输出字符转换问题 #5

Open
anyforever opened this issue Jul 25, 2020 · 0 comments
Open

接口输出字符转换问题 #5

anyforever opened this issue Jul 25, 2020 · 0 comments

Comments

@anyforever
Copy link

从数据库取出来之后,将shortname转为了Unicode,但是接口return之后,显示出来的就是"name": "Apple😜",这种形式了,在浏览器里能自动转成emoji表情,在小程序里就不行了。如何直接还是😜呢?

return response()->json(['code' => 0, 'message' => 'ok', 'data' => $data]);

{
  "code": 0,
  "message": "ok",
  "data": {
    "user": {
      "name": "Apple😜",
      "avatar": ""
    },
   ]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant