{"id":181,"date":"2014-09-20T09:55:40","date_gmt":"2014-09-20T07:55:40","guid":{"rendered":"http:\/\/www.emperial.dk\/?p=181"},"modified":"2014-09-20T09:57:53","modified_gmt":"2014-09-20T07:57:53","slug":"screen-and-irssi-encodning","status":"publish","type":"post","link":"https:\/\/www.emperial.dk\/?p=181","title":{"rendered":"Screen and irssi encodning."},"content":{"rendered":"<p>Got this from a thread on the internet:<\/p>\n<p>Section 1. Configuration<\/p>\n<p>Follow the following steps. Please do not use scandinavic<br \/>\ncharacters until you have proceeded configuring irssi &amp; screen<br \/>\nsince they probably will not work properly while the<br \/>\nconfiguration is not finished.<\/p>\n<p>Step 1. Connect to the server to run your irssi on<\/p>\n<p>Step 2. Shut down your irssi<\/p>\n<pre>\/quit<\/pre>\n<p>Step 3. Close the screen you were running it in (if it didn&#8217;t already)<\/p>\n<p>Step 4. Backup your current irssi &amp; screen configuration:<\/p>\n<pre>$ tar czf irssi-backup.tar.gz .irssi .screenr*<\/pre>\n<p>Step 5. If you have a line starting &#8220;defencoding&#8221; in ~\/.screenrc, remove it<\/p>\n<p>Step 6. Start screen like you usually do, but add a -U parameter<\/p>\n<pre>$ screen -U<\/pre>\n<p>or perhaps<\/p>\n<pre>$ screen -U -S irc<\/pre>\n<p>This makes screen understand that irssi talks utf-8 to screen<\/p>\n<p>Step 7. Configure irssi to talk utf-8 to screen but use iso-8859-15 charset by default for all windows<\/p>\n<p>Copy-paste the following commands to the irssi console:<\/p>\n<pre>\r\n\/set term_charset utf-8\r\n\/set recode_autodetect_utf8 ON\r\n\/set recode_fallback ISO-8859-15\r\n\/set recode_out_default_charset ISO-8859-15\r\n\/set recode_transliterate ON\r\n\/set recode ON\r\n<\/pre>\n<p>Step 8. Detach screen (typically by pressing ctrl-a d)<\/p>\n<p>Ta-da! Now you have configured irssi and screen to work properly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Got this from a thread on the internet: Section 1. Configuration Follow the following steps. Please do not use scandinavic characters until you have proceeded configuring irssi &amp; screen since they probably will not work properly while the configuration is &hellip; <a href=\"https:\/\/www.emperial.dk\/?p=181\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37,4],"tags":[39,38,12],"class_list":["post-181","post","type-post","status-publish","format-standard","hentry","category-irc","category-linux","tag-irc-2","tag-irssi","tag-linux-2"],"_links":{"self":[{"href":"https:\/\/www.emperial.dk\/index.php?rest_route=\/wp\/v2\/posts\/181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.emperial.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.emperial.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.emperial.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.emperial.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=181"}],"version-history":[{"count":2,"href":"https:\/\/www.emperial.dk\/index.php?rest_route=\/wp\/v2\/posts\/181\/revisions"}],"predecessor-version":[{"id":183,"href":"https:\/\/www.emperial.dk\/index.php?rest_route=\/wp\/v2\/posts\/181\/revisions\/183"}],"wp:attachment":[{"href":"https:\/\/www.emperial.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.emperial.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.emperial.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}