- We have an database where the default character set for tables and columns is set to utf8 encoding
- But with character set encoding of utf8 , we are unable to save emojis
- To support saving of emojis, a) We had to change the character set of table and columns to utf8mb4 b) We had to change the collation of table and columns to utf8mb4_unicode_ci c) Update our JDBC driver so that it supports the unicode encoding
With the above changes we are able to save the emoji in our columns.
Question: 1) Do I need to delete existing indexes (varchar columns) and recreate the indexes as earlier with utf8 each character used to take 3 bytes and now with utf8mb4 encoding it will occupy 4 bytes ?