{"id":532,"date":"2016-07-11T13:31:23","date_gmt":"2016-07-11T13:31:23","guid":{"rendered":"http:\/\/cloudhost.com.ng\/blog\/?p=532"},"modified":"2016-07-11T16:40:35","modified_gmt":"2016-07-11T16:40:35","slug":"how-to-change-database-to-utf-8-in-cpanel","status":"publish","type":"post","link":"https:\/\/cloudhost.com.ng\/blog\/how-to-change-database-to-utf-8-in-cpanel\/","title":{"rendered":"How to change database to UTF-8 in cPanel"},"content":{"rendered":"<p>Changing character encoding may not be necessary until one day you try to access your WordPress or even your blog and you are met with some funny looking and obviously unfamiliar characters like &#8220;\u00c2 \u00e2 \u20ac\u2122 \u00a2&#8221;. It is just some character encoding problems. It is no big issue as this can easily be solved by using the phpMyAdmin tool in cPanel.<\/p>\n<h3 style=\"padding-left: 30px\">How to change the collation of your database<\/h3>\n<p style=\"padding-left: 30px\">You can change the collation of your database to utf8_general_ci which is the the most commonly used collation.<\/p>\n<ol>\n<li>Log into your cPanel.<\/li>\n<li>Under the <em><strong>Database<\/strong><\/em> section, click on <span style=\"color: #ff0000\"><span style=\"color: #000000\"><strong>phpMyAdmin<\/strong><\/span><span style=\"color: #333333\">.<a href=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/07\/Screenshot-144.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-533\" src=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/07\/Screenshot-144.png\" alt=\"Screenshot (144)\" width=\"509\" height=\"116\" srcset=\"https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/07\/Screenshot-144.png 509w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/07\/Screenshot-144-300x68.png 300w\" sizes=\"(max-width: 509px) 100vw, 509px\" \/><\/a><\/span><\/span><\/li>\n<li>You will be redirected to a new page and a list of your database will be displayed on the left side of the page. Click on the database you wish to modify.<a href=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/07\/Screenshot-146.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-534\" src=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/07\/Screenshot-146.png\" alt=\"Screenshot (146)\" width=\"611\" height=\"380\" srcset=\"https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/07\/Screenshot-146.png 611w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/07\/Screenshot-146-300x187.png 300w\" sizes=\"(max-width: 611px) 100vw, 611px\" \/><\/a><\/li>\n<li>Click on <strong>Operations<\/strong> in the top right corner of the task bar.<\/li>\n<li>Under <strong>Collations<\/strong>, click on <em><strong>utf8_general_ci<\/strong><\/em> or any other collation you wish to change your database to.<\/li>\n<li>To modify a database table, click the &#8220;<strong>+<\/strong>&#8221; icon beside the database under which the table is.<\/li>\n<li>Click on the database table you wish to modify.<a href=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/07\/Screenshot-145.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-535\" src=\"http:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/07\/Screenshot-145.png\" alt=\"Screenshot (145)\" width=\"827\" height=\"381\" srcset=\"https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/07\/Screenshot-145.png 827w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/07\/Screenshot-145-300x138.png 300w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/07\/Screenshot-145-768x354.png 768w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2016\/07\/Screenshot-145-624x287.png 624w\" sizes=\"(max-width: 827px) 100vw, 827px\" \/><\/a><\/li>\n<li>On the top right corner of the task bar on your screen, click on <strong>Operations<\/strong>.<\/li>\n<li>Under <strong><em>Table Options<\/em><\/strong>, in the <strong>Collations box<\/strong>, click on utf8_general_ci or any other collation you wish to change your database to.<\/li>\n<li>Then click on <strong>Go<\/strong>. You can now go through your WordPress and the characters will be gone.<\/li>\n<\/ol>\n<p style=\"padding-left: 30px\">When this is done, all tables created after this change has been made will be created in the new collation.\u00a0However, the already existing tables will remain in their original encoding. If you wish to change the encoding for a specific table:<\/p>\n<ol>\n<li>Go back and click on the table you wish to change.<\/li>\n<li>Click on <strong>Operations\u00a0<\/strong>located in the task bar.<\/li>\n<li>Then select the collation you wish to change to under the <strong>Collations<\/strong> box. The collation for that specific table will then be changed without affecting tables that will be created afterwards.<\/li>\n<\/ol>\n<p style=\"padding-left: 30px\">There, you have been able to change the collation of your database and you can enjoy working on your blog or WordPress.<\/p>\n<p style=\"padding-left: 30px\">\n","protected":false},"excerpt":{"rendered":"<p>Changing character encoding may not be necessary until one day you try to access your WordPress or even your blog and you are met with some funny looking and obviously unfamiliar characters like &#8220;\u00c2 \u00e2 \u20ac\u2122 \u00a2&#8221;. It is just some character encoding problems. It is no big issue as this can easily be solved [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"yst_prominent_words":[],"class_list":["post-532","post","type-post","status-publish","format-standard","hentry","category-cpanel"],"_links":{"self":[{"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/532"}],"collection":[{"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/comments?post=532"}],"version-history":[{"count":10,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/532\/revisions"}],"predecessor-version":[{"id":552,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/532\/revisions\/552"}],"wp:attachment":[{"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/media?parent=532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/categories?post=532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/tags?post=532"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/yst_prominent_words?post=532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}