I'm planning on using utf8mb4 in my database.
Now as I've learned I should always use UTF-8 in my meta charset, but do I always do, so when I'm using utf8mb4 in my database?
Always use “utf8mb4” when you want UTF-8. Convert your database now to avoid headaches later.
This why I say, yes, you should use the charset meta tags, even if ignored by many browsers today. It can only help with cross-browser issues and maximize the percentage chance of user agents created the past 20 years can read your valuable web content.
The charset attribute specifies the character encoding for the HTML document. The HTML5 specification encourages web developers to use the UTF-8 character set, which covers almost all of the characters and symbols in the world!
The utfmb4 character set has these characteristics: Supports BMP and supplementary characters. Requires a maximum of four bytes per multibyte character.
utf8mb4 is specific to MySQL. The rest of the world calls it UTF-8.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With