PHP Facebook SDK / Graph API - How do I include sy

2019-01-26 15:15发布

How do I post symbols (eg. ©) in a wall post using the graph api? Html entities (eg. ©) aren't parsed in facebook.

1条回答
乱世女痞
2楼-- · 2019-01-26 15:22

All large text fields are utf-8, use the actual character used to represent it which is U+00A9

If you have HTML entities you can decode with html_entity_decode()

$utf8_text = html_entity_decode("test © foo", ENT_COMPAT, "UTF-8");

查看更多
登录 后发表回答