{"id":235,"date":"2016-12-27T04:19:03","date_gmt":"2016-12-27T12:19:03","guid":{"rendered":"https:\/\/www.actinia.me\/?p=235"},"modified":"2018-01-18T22:40:58","modified_gmt":"2018-01-19T06:40:58","slug":"ubuntu%ef%bc%9a-incorrect-chinese-display","status":"publish","type":"post","link":"https:\/\/www.actinia.me\/?p=235","title":{"rendered":"Ubuntu\uff1a incorrect Chinese display"},"content":{"rendered":"<p>Ubuntu 16.04\uff1aChinese characters display improperly.<a href=\"https:\/\/www.actinia.me\/?p=198\"> Old methods<\/a> don&#8217;t work. We need some new methods.<br \/>\n<strong>For the system:<\/strong><br \/>\n<code>sudo vim \/var\/lib\/locales\/supported.d\/zh-hans<\/code><br \/>\nadd:<br \/>\n<code>zh_CN.UTF-8 UTF-8<br \/>\nzh_CN.GB18030 GB18030<br \/>\nzh_CN.GBK GBK<br \/>\nzh_CN GB2312<br \/>\nzh_HK.UTF-8 UTF-8<br \/>\nzh_HK BIG5-HKSCS<br \/>\nzh_SG.UTF-8 UTF-8<br \/>\nzh_SG.GBK GBK<br \/>\nzh_SG GB2312<br \/>\nzh_TW.UTF-8 UTF-8<br \/>\nzh_TW.EUC-TW EUC-TW<br \/>\nzh_TW BIG5<\/code><br \/>\nto the file<br \/>\n(those lines were copied from \/usr\/share\/i18n\/SUPPORTED)<\/p>\n<p>excecute\uff1a<br \/>\n<code>sudo locale-gen<\/code><\/p>\n<p><strong>next\uff1a config vim\uff1a<\/strong><br \/>\n<code>sudo vi \/etc\/vim\/vimrc<\/code><br \/>\nadd\uff1a<br \/>\n<code>let &termencoding=&encoding<br \/>\nset fileencodings=utf-8,gb18030,gbk,gb2312,big5<\/code><\/p>\n<p><strong>next: config gedit:<\/strong><br \/>\n<code>dconf-editor<\/code><br \/>\nin the tree, find:org\/gnome\/gedit\/preferences\/encodings<br \/>\nedit the value of candidate-encodings as [&#8216;UTF-8&#8217;, &#8216;GB18030&#8217;, &#8216;GB2312&#8217;, &#8216;GBK&#8217;, &#8216;BIG5&#8217;, &#8216;CURRENT&#8217;, &#8216;UTF-16&#8217;]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 16.04\uff1aChinese characters display improperly. Old methods don&#8217;t work. We need some new methods. For the system: sudo vim \/var\/lib\/locales\/supported.d\/zh-hans add: zh_CN.UTF-8 UTF-8 zh_CN.GB18030 GB18030 zh_CN.GBK GBK zh_CN GB2312 zh_HK.UTF-8 UTF-8 zh_HK BIG5-HKSCS zh_SG.UTF-8 UTF-8 zh_SG.GBK GBK zh_SG GB2312 zh_TW.UTF-8 UTF-8 zh_TW.EUC-TW EUC-TW zh_TW BIG5 to the file (those lines were copied from \/usr\/share\/i18n\/SUPPORTED) excecute\uff1a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.actinia.me\/index.php?rest_route=\/wp\/v2\/posts\/235"}],"collection":[{"href":"https:\/\/www.actinia.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.actinia.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.actinia.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.actinia.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=235"}],"version-history":[{"count":2,"href":"https:\/\/www.actinia.me\/index.php?rest_route=\/wp\/v2\/posts\/235\/revisions"}],"predecessor-version":[{"id":237,"href":"https:\/\/www.actinia.me\/index.php?rest_route=\/wp\/v2\/posts\/235\/revisions\/237"}],"wp:attachment":[{"href":"https:\/\/www.actinia.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.actinia.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.actinia.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}