{"id":17661,"date":"2019-07-18T16:23:19","date_gmt":"2019-07-18T20:23:19","guid":{"rendered":"https:\/\/www.boldgrid.com\/support\/?p=17661"},"modified":"2020-03-12T14:39:19","modified_gmt":"2020-03-12T18:39:19","slug":"declare-a-charset-in-the-page","status":"publish","type":"post","link":"https:\/\/www.boldgrid.com\/support\/boldgrid-speed-coach-product-guide\/declare-a-charset-in-the-page\/","title":{"rendered":"Declare a charset in the page"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<?xml encoding=\"utf-8\" ?><html><body><h2 id=\"why-do-i-need-to-declare-a-charset\"><span style=\"font-weight: 400;\">Why do I need to declare a charset?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">A charset, or character encoding, is the set of characters (i.e letters, numbers, punctuation marks, etc.) a web page will use to show its content. Selecting a charset helps browsers understand the rules for correctly interpreting your website and ensures that the content is rendered as expected.&nbsp;<\/span><\/p>\n<h2 id=\"how-to-declare-a-charset\"><span style=\"font-weight: 400;\">How to Declare a Charset<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">A charset can be declared by setting an HTML &lt;meta&gt; tag with the &ldquo;charset&rdquo; value like. Here is an example of declaring the charset: &lt;meta charset=&rdquo;utf-8&rdquo;&gt;. This &lt;meta&gt; tag should be placed immediately following the opening &lt;head&gt; tag.&nbsp;<\/span><\/p>\n<h2 id=\"why-use-utf-8\"><span style=\"font-weight: 400;\">Why use UTF-8?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Web pages can only use a single charset on each page. UTF-8 is the recommended charset to use on the Internet because it supports most languages and can be read by virtually any browser. UTF-8 is also widely supported by the content management systems, such as WordPress, and databases used to generate and store website content. Websites using UTF-8 do not require additional resources or software for translating data into different charsets.<\/span><\/p>\n<\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>Why do I need to declare a charset? A charset, or character encoding, is the set of characters (i.e letters, numbers, punctuation marks, etc.) a web page will use to show its content. Selecting a charset helps browsers understand the rules for correctly interpreting your website and ensures that the content is rendered as expected.&nbsp; [&hellip;]<\/p>\n","protected":false},"author":1071,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"bgseo_title":"","bgseo_description":"","bgseo_robots_index":"index","bgseo_robots_follow":"follow","footnotes":""},"categories":[651],"tags":[666],"class_list":["post-17661","post","type-post","status-publish","format-standard","hentry","category-boldgrid-speed-coach-product-guide","tag-best-practices","feature-type-free"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/17661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/users\/1071"}],"replies":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/comments?post=17661"}],"version-history":[{"count":1,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/17661\/revisions"}],"predecessor-version":[{"id":17662,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/17661\/revisions\/17662"}],"wp:attachment":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/media?parent=17661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/categories?post=17661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/tags?post=17661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}