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

2019-01-26 14:55发布

问题:

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

回答1:

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");