{"id":294,"date":"2009-04-29T08:32:02","date_gmt":"2009-04-29T05:32:02","guid":{"rendered":"https:\/\/www.optimiced.com\/en\/?p=294"},"modified":"2009-04-29T08:34:29","modified_gmt":"2009-04-29T05:34:29","slug":"utf8-unicode-ci-vs-utf8-general-ci","status":"publish","type":"post","link":"https:\/\/www.optimiced.com\/en\/2009\/04\/29\/utf8-unicode-ci-vs-utf8-general-ci\/","title":{"rendered":"What MySQL collation to choose: utf8_unicode_ci or utf8_general_ci?"},"content":{"rendered":"<p>I was searching for some time the answer to the following question:<\/p>\n<p>What&#8217;s the difference between <strong>utf8_unicode_ci<\/strong> and <strong>utf8_general_ci<\/strong> (MySQL collations)?<\/p>\n<p>I have almost no knowledge in PHP\/MySQL, so I have read with the great interest the following info:<\/p>\n<p><strong><a href=\"http:\/\/forums.mysql.com\/read.php?103,187048,188748#msg-188748\">http:\/\/forums.mysql.com\/read.php?103,187048,188748#msg-188748<\/a><\/strong><\/p>\n<p>Generally speaking, it looks like the difference between these two collations is not too big; also, it appears that <em>utf8_unicode_ci is more precise<\/em>, and <em>utf8_general_ci is faster<\/em>.<\/p>\n<p>I suppose also that if you plan to write in more than one language and\/or to write in a language other than US\/UK English, then <strong>utf8_unicode_ci<\/strong> is the better choice to make &#8212; for example, the German letter &#8220;<strong>\u00df<\/strong>&#8221; will be correctly sorted near &#8220;<strong>ss<\/strong>&#8221; (this won&#8217;t hapen, if you use <em>utf8_general_ci<\/em> collation). There are other differences, too, so drop a look at the article, if the topic interests you! :-)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was searching for some time the answer to the following question: What&#8217;s the difference between utf8_unicode_ci and utf8_general_ci (MySQL collations)? I have almost no knowledge in PHP\/MySQL, so I have read with the great interest the following info: http:\/\/forums.mysql.com\/read.php?103,187048,188748#msg-188748 Generally speaking, it looks like the difference between these two collations is not too big;&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-294","post","type-post","status-publish","format-standard","hentry","category-webdesign"],"_links":{"self":[{"href":"https:\/\/www.optimiced.com\/en\/wp-json\/wp\/v2\/posts\/294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.optimiced.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.optimiced.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.optimiced.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.optimiced.com\/en\/wp-json\/wp\/v2\/comments?post=294"}],"version-history":[{"count":3,"href":"https:\/\/www.optimiced.com\/en\/wp-json\/wp\/v2\/posts\/294\/revisions"}],"predecessor-version":[{"id":299,"href":"https:\/\/www.optimiced.com\/en\/wp-json\/wp\/v2\/posts\/294\/revisions\/299"}],"wp:attachment":[{"href":"https:\/\/www.optimiced.com\/en\/wp-json\/wp\/v2\/media?parent=294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.optimiced.com\/en\/wp-json\/wp\/v2\/categories?post=294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.optimiced.com\/en\/wp-json\/wp\/v2\/tags?post=294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}