I want to encode a string with a heart ❤ emoji in js:
php utf8_encode produces: \u2764
js utf8.encode produces: â¤
are both values valid when I use them in a response with utf header:
"Content-Type": "application/x-www-form-urlencoded; charset=utf-8"