I have a table in MYSQL. It is defined as character set - utf8, collation: utf8_general_ci. The ITEM_TITLE column defined as a varchar.
I have this query:
UPDATE details SETITEM_TITLE
="★32GB VALUE PACK★ Sony Xperia miro ST23i 4GB Int White with silver" WHERETaskID
=109The result is that in the column ITEM_TITLE i have a title without the ★ and with "?" instead.
THE QUESTION: What should i do, in order to save "★" in the DB properly?
**I found a solution for SQL server - using Nvarchar and not varchar but there is no such type in MySQL.
Answer: I understood what was the problem and why the solution that worked for someone, didnt work for me. First off all, the default for my DB is charset latin. So i changed it to UTF-8 but it didnt solve the issue. The reason for that is that i had a charset latin for most of the rows. I didnt know that it is set automatically for varchar and doesnt change even when i set the table as UTF-8. So I changed everything to UTF-8 and it works fix.
Thanks for all the help!