I’m trying to properly store Tweets into a MySQL database. A.o, the Twitter Search API returns the following:
from_user_name":"Daniel Salas Jim\u00e9nez"
As can be seen from the profile page, this translates into Daniel Salas Jiménez. My utf8_general_ci encoded database, however, stores this as Daniel Salas Jiménez. Notice that nor \u00e9 or é is stored, but é. I have no way of ever concerting this back into é.
So my question is: what am I doing wrong in storing Twitter data? How can I store this users username so that I can read it from MySQL properly, being Daniel Salas Jiménez?
That is all because of the charset problem. You are trying to see it in charset=”UTF-8″ where as the twitter charset is charset=”iso-8859-1″ Your mysql based database it saving it correctly but not displaying it correct , So when you need that to be displayed it on some page use the charset=”iso-8859-1″ in header
example