Database Collation and UTF8MB4

Database collation defines how characters are compared and hence the order of rows in query results.

  • UTF8: Uses 3 bytes for a character
  • UTF8MB4: Uses 4 bytes for a character, so allows more characters.

How to Decode Collation


  1. UTF8MB4
  2. Unicode 5.2.0 comparison for characters
  3. ci: Case Insensitive comparisons


Written with StackEdit.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: