I want to store "First name" with max length of 12 characters. If it exceeds, it will be rejected.
So, I create a table with this schema
create table Tb (firstName varchar(12) character set utf8 NOT NULL)
Now if the name is in ASCII, then it will be fine. But what if it's in Japanese or Thai? Each Unicode char takes 3 bytes, so do I need to triple the size like this?
create table Tb (firstName varchar(36) character set utf8 NOT NULL)
But then, if I triple the size like that, then the English users can put a name that is longer than 12 chars. How to solve this issue?