Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.

For the best experience please use the latest Chrome or Safari browser. Firefox 10 (to be released soon) will also handle it.

MySQLとUnicode

2016/01/22
MySQL Casual Talks vol.9

@kamipo
github/kamipo

About me

About me

フォロワー3306人になりました!!

Rails Contributors in 2015

Rails Contributors in 2015

Rails Contributors in 2015

Rails Contributors in 2015

Planning the defaults for MySQL 5.8

Planning the defaults for MySQL 5.8

We are considering changing the default character set to utf8mb4. Modern applications frequently store 4 byte characters, as emoji input is common for mobile devices.

Planning the defaults for MySQL 5.8

In addition to utf8mb4, we are also considering switching the default collation to be utf8mb4_unicode_520_ci.

MySQLとUnicodeとkamipo

ハハパパ🍣🍺問題

🍣🍺問題

ハハパパ問題

ハハパパ問題

ハハパパ問題

mysql-5.7.10/strings/ctype-uca.c#L17-L31


/* 
   UCA (Unicode Collation Algorithm) support. 
   Written by Alexander Barkov 
   
   Currently supports only subset of the full UCA:
   - Only Primary level key comparison
   - Basic Latin letters contraction is implemented
   - Variable weighting is done for Non-ignorable option
   
   Features that are not implemented yet:
   - No Normalization From D is done
     + No decomposition is done
     + No Thai/Lao orderding is done
   - No combining marks processing is done
*/

まとめ

That's all🍻

Use a spacebar or arrow keys to navigate