{"id":116,"date":"2017-05-25T11:08:44","date_gmt":"2017-05-25T14:08:44","guid":{"rendered":"http:\/\/vargolino.com\/wp\/?p=116"},"modified":"2017-06-05T10:22:48","modified_gmt":"2017-06-05T13:22:48","slug":"setting-up-a-utf-8-environment-in-linux","status":"publish","type":"post","link":"https:\/\/vargolino.com\/wp\/?p=116","title":{"rendered":"Setting up a UTF-8 environment in linux"},"content":{"rendered":"<p>Based on <a href=\"https:\/\/perlgeek.de\/en\/article\/set-up-a-clean-utf8-environment\">this post.<\/a><\/p>\n<p>Check if the <code>locales<\/code> package is installed (<code>dpkg -l locales<\/code>). Then run:<\/p>\n<pre>dpkg-reconfigure locales\r\n<\/pre>\n<p>and choose the desired locales (<code>en_US.UTF-8<\/code>, for me).<\/p>\n<p>Then, to be sure, export the variables (<code>~\/.bashrc<\/code>)<\/p>\n<pre>export LC_ALL=en_US.UTF-8\r\nexport LANG=en_US.UTF-8\r\nexport LANGUAGE=en_US.UTF-8\r\n<\/pre>\n<p>You should start tmux or screen with the parameters, to be sure:<\/p>\n<pre>$ tmux -u\r\n$ screen -U\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Based on this post. Check if the locales package is installed (dpkg -l locales). Then run: dpkg-reconfigure locales and choose the desired locales (en_US.UTF-8, for me). Then, to be sure, export the variables (~\/.bashrc) export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 export LANGUAGE=en_US.UTF-8 You should start tmux or screen with the parameters, to be sure: $ tmux -u &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/vargolino.com\/wp\/?p=116\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Setting up a UTF-8 environment in linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[9,13],"class_list":["post-116","post","type-post","status-publish","format-standard","hentry","category-solution","tag-linux","tag-shell","entry"],"_links":{"self":[{"href":"https:\/\/vargolino.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vargolino.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vargolino.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vargolino.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vargolino.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=116"}],"version-history":[{"count":1,"href":"https:\/\/vargolino.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/116\/revisions"}],"predecessor-version":[{"id":117,"href":"https:\/\/vargolino.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/116\/revisions\/117"}],"wp:attachment":[{"href":"https:\/\/vargolino.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vargolino.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vargolino.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}