{"id":3137,"date":"2014-03-07T16:25:42","date_gmt":"2014-03-07T21:25:42","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2014\/03\/07\/database-collation\/"},"modified":"2022-03-11T11:40:17","modified_gmt":"2022-03-11T16:40:17","slug":"change-wordpress-database-collation","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/","title":{"rendered":"Changing your WordPress database collation"},"content":{"rendered":"<p>If characters are not being stored properly on your WordPress site, or if you are using a different language in which the characters that you entered are not the same as what is being displayed, you may need to change your <a href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.0\/en\/charset-general.html\" target=\"_blank\" rel=\"noopener noreferrer\">database collation<\/a>.  For example, if you database uses character set that is not <em>utf8_general_ci<\/em>, you will need to tell WordPress to use a different collation.  If you need to change the character set of your database as well, take a look at the WordPress codex page on <a href=\"https:\/\/codex.wordpress.org\/Converting_Database_Character_Sets\" target=\"_blank\" rel=\"noopener noreferrer\">converting your database character sets<\/a>.  In this article, we will show you how to define a custom database collation within WordPress.<\/p>\n<ol class=\"article_list\">\n<li>As we will be using the cPanel file manager to edit your <em>wp-config.php<\/em> file, you will need to <a href=\"\/support\/edu\/cpanel\/how-to-log-into-cpanel\/\">log into cPanel<\/a> and click on the <strong>File Manager<\/strong> icon.<\/li>\n<li>Next, you will want to navigate the to the root directory of your WordPress installation.  Typically, it will be in your <em>public_html<\/em> directory.<\/li>\n<li>Once you&#8217;ve found the <em>wp-config.php<\/em> file, right-click it and click on <strong>Code Edit<\/strong>.<\/li>\n<li>Inside this file, locate a link that says:\n<p class=\"code_block\">define( &#8216;DB_COLLATE&#8217;, &#8221; );<\/p>\n<\/li>\n<li>Within this line, you may set your collation between the two single quotes.  For example, it may look something like this:\n<p class=\"code_block\">define( &#8216;DB_COLLATE&#8217;, &#8216;utf8_general_ci&#8217; );<\/p>\n<\/li>\n<li>Be sure to save your settings when done.<\/li>\n<\/ol>\n<p>The following are examples of collation that can be used for UTF-8 character sets:<\/p>\n<ul>\n<li>utf8_bin<\/li>\n<li>utf8_czech_ci<\/li>\n<li>utf8_danish_ci<\/li>\n<li>utf8_esperanto_ci<\/li>\n<li>utf8_estonian_ci<\/li>\n<li>utf8_general_ci <em>(default)<\/em><\/li>\n<li>utf8_hungarian_ci<\/li>\n<li>utf8_icelandic_ci<\/li>\n<li>utf8_latvian_ci<\/li>\n<li>utf8_lithuanian_ci<\/li>\n<li>utf8_persian_ci<\/li>\n<li>utf8_polish_ci<\/li>\n<li>utf8_roman_ci<\/li>\n<li>utf8_romanian_ci<\/li>\n<li>utf8_slovak_ci<\/li>\n<li>utf8_slovenian_ci<\/li>\n<li>utf8_spanish_ci<\/li>\n<li>utf8_spanish2_ci<\/li>\n<li>utf8_swedish_ci<\/li>\n<li>utf8_turkish_ci<\/li>\n<li>utf8_unicode_ci<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>If characters are not being stored properly on your WordPress site, or if you are using a different language in which the characters that you entered are not the same as what is being displayed, you may need to change your database collation. For example, if you database uses character set that is not utf8_general_ci,<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/\"> Read More ><\/a><\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4325,56],"tags":[],"class_list":["post-3137","post","type-post","status-publish","format-standard","hentry","category-wordpress-hosting","category-wordpress"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Changing your WordPress database collation<\/title>\n<meta name=\"description\" content=\"Learn about changing your WordPress database collation for different languages. This will allow you to use different characters for a language.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Changing your WordPress database collation\" \/>\n<meta property=\"og:description\" content=\"Learn about changing your WordPress database collation for different languages. This will allow you to use different characters for a language.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-03-07T21:25:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-11T16:40:17+00:00\" \/>\n<meta name=\"author\" content=\"Jeff Matson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Matson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/\"},\"author\":{\"name\":\"Jeff Matson\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/83776252b196c020e4352a3796e5642b\"},\"headline\":\"Changing your WordPress database collation\",\"datePublished\":\"2014-03-07T21:25:42+00:00\",\"dateModified\":\"2022-03-11T16:40:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/\"},\"wordCount\":307,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"WordPress Hosting\",\"WordPress Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/\",\"name\":\"Changing your WordPress database collation\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2014-03-07T21:25:42+00:00\",\"dateModified\":\"2022-03-11T16:40:17+00:00\",\"description\":\"Learn about changing your WordPress database collation for different languages. This will allow you to use different characters for a language.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Changing your WordPress database collation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/83776252b196c020e4352a3796e5642b\",\"name\":\"Jeff Matson\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/jeffma\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Changing your WordPress database collation","description":"Learn about changing your WordPress database collation for different languages. This will allow you to use different characters for a language.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/","og_locale":"en_US","og_type":"article","og_title":"Changing your WordPress database collation","og_description":"Learn about changing your WordPress database collation for different languages. This will allow you to use different characters for a language.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2014-03-07T21:25:42+00:00","article_modified_time":"2022-03-11T16:40:17+00:00","author":"Jeff Matson","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Jeff Matson","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/"},"author":{"name":"Jeff Matson","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/83776252b196c020e4352a3796e5642b"},"headline":"Changing your WordPress database collation","datePublished":"2014-03-07T21:25:42+00:00","dateModified":"2022-03-11T16:40:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/"},"wordCount":307,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["WordPress Hosting","WordPress Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/","name":"Changing your WordPress database collation","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2014-03-07T21:25:42+00:00","dateModified":"2022-03-11T16:40:17+00:00","description":"Learn about changing your WordPress database collation for different languages. This will allow you to use different characters for a language.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/change-wordpress-database-collation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Changing your WordPress database collation"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/83776252b196c020e4352a3796e5642b","name":"Jeff Matson","url":"https:\/\/www.inmotionhosting.com\/support\/author\/jeffma\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=3137"}],"version-history":[{"count":2,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3137\/revisions"}],"predecessor-version":[{"id":84312,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3137\/revisions\/84312"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=3137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=3137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=3137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}