{"id":66,"date":"2011-12-06T14:45:00","date_gmt":"2011-12-06T14:45:00","guid":{"rendered":"https:\/\/www.root42.de\/blog\/?p=66"},"modified":"2011-12-06T14:45:00","modified_gmt":"2011-12-06T14:45:00","slug":"emacs-convert-current-buffer-to-utf-8","status":"publish","type":"post","link":"https:\/\/www.root42.de\/blog\/?p=66","title":{"rendered":"Emacs: Convert current buffer to utf-8"},"content":{"rendered":"<p>I just opened an old TeX file, which was still encoded in latin1. Now I wanted to re-save it as utf-8 in Emacs. This turns out to be very simple, as someone on #emacs at freenode told me. Just hit <span style=\"font-family: 'Courier New', Courier, monospace;\">C-x RET f<\/span>, and type <span style=\"font-family: 'Courier New', Courier, monospace;\">utf-8 RET<\/span>. On the next save (<span style=\"font-family: 'Courier New', Courier, monospace;\">C-x C-s<\/span>), the file will be written as utf-8.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just opened an old TeX file, which was still encoded in latin1. Now I wanted to re-save it as utf-8 in Emacs. This turns out to be very simple, as someone on #emacs at freenode told me. Just hit C-x RET f, and type utf-8 RET. On the next save (C-x C-s), the file &hellip; <a href=\"https:\/\/www.root42.de\/blog\/?p=66\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Emacs: Convert current buffer to utf-8&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,34],"tags":[],"_links":{"self":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/66"}],"collection":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=66"}],"version-history":[{"count":0,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/66\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}