I have a string that looks like this:
Now, when my app shoves this string into its utf8 mysql database column, it looks like this in the MySQL CLI:
If I select convert(mystring using utfmb4)
it still looks like this.
And if I turn it to hex using select hex(mystring) from mytable;
, it looks like this:
C3A2CB9CE282ACC3AFC2B8C28FC3B0C5B8C592CB86C3B0C5B8C592C5A0C3B0C5B8C592C281C3B0C5B8E280A1C2ACC3B0C5B8E280A1C2A7
Now, let's say I want to find strings with that emoji wave in it. Well, the hex for the wave emoji is F09F8C8A
. But F09F8C8A
isn't in the hex above so something like select * from mytable where hex(mystring) like '%F09F8C8A%';
doesn't work.
Any suggestions?