Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP Facebook SDK / Graph API - How do I include symbols, eg ©, in a wall post?

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

like image 897
John Himmelman Avatar asked Oct 17 '11 16:10

John Himmelman


1 Answers

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

like image 74
Scott MacVicar Avatar answered Nov 03 '22 03:11

Scott MacVicar