Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can and/or should I declare meta charset utf8mb4

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?

like image 661
JeroenM Avatar asked May 16 '18 21:05

JeroenM


People also ask

Should I use UTF-8 or utf8mb4?

Always use “utf8mb4” when you want UTF-8. Convert your database now to avoid headaches later.

Should I use meta charset?

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.

Should I use meta charset UTF-8?

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!

What does the utf8mb4 character set allow for?

The utfmb4 character set has these characteristics: Supports BMP and supplementary characters. Requires a maximum of four bytes per multibyte character.


1 Answers

utf8mb4 is specific to MySQL. The rest of the world calls it UTF-8.

like image 61
Josh Lee Avatar answered Oct 01 '22 10:10

Josh Lee