【发布时间】:2020-02-19 19:06:30
【问题描述】:
我正在尝试使用“Unicode 代码点转义语法”通过其 unicode 显示表情符号。
基本语法是:
echo "\u{1f606}"; - And it works fine
但是,当我从变量中插入 unicode 时:
$unicode = "1f606";
echo "\u{".$unicode."}";
我收到 «Invalid UTF-8 codepoint escape sequence» 错误。
【问题讨论】:
标签: php unicode character-encoding symbols