I have a MySQL
database with a table of latin1_swedish_ci
collation that has a text
field which contains text such as %u013A
,Ok%20bro
and %uD83D%uDE02%uD83D%uDE02
. I understand that these data contains special characters such as spaces and emojis. How can properly display these texts in PHP
? I have tried with the numerous PHP
functions such as url_decode()
and utf8_encode()
to no avail. Please help.
Edit: The table is being populated from a node js
server that applies the function escape()
before inserting to the table. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/escape