{"id":426,"date":"2007-04-17T23:21:49","date_gmt":"2007-04-17T14:21:49","guid":{"rendered":"https:\/\/regex.info\/blog\/2007-04-17\/426"},"modified":"2007-04-17T23:21:49","modified_gmt":"2007-04-17T14:21:49","slug":"getting-kanji-working-in-emacs-mule-ucs-startup-hook","status":"publish","type":"post","link":"https:\/\/regex.info\/blog\/2007-04-17\/426","title":{"rendered":"Getting Kanji Working in Emacs: Mule-UCS Startup Hook"},"content":{"rendered":"\n\n<p>I finally solved a problem I was having with Japanese input into emacs,\nand thought I'd report it for the benefit of others that might be searching\nfor <span class='nobr'>a solution.<\/span><\/p>\n\n<p>A month or so ago, emacs stopped accepting kanji in Japanese input, and\nstopped displaying kanji in files. Hiragana and katakana continued to\ninput\/display fine, but kanji no longer worked at all.<\/p>\n\n<p>I spent a month testing all kinds of things (including some\nprintf-debugging of the emacs source code!), but to make <span class='nobr'>a long<\/span> story\nshort, it seems that all <span class='nobr'>I needed<\/span> to do was to add<\/p>\n\n<pre>\n   (require 'un-define)\n<\/pre>\n\n<p>to my <i>.emacs<\/i> file.<\/p>\n\n<p>I'm not sure whether I previously had that line in my <i>.emacs<\/i>\nfile and somehow accidentally deleted it, or whether an update to Debian's\n<b>mule-ucs<\/b> package (which is required for kanji to work in emacs)\nstopped doing that <i>require<\/i> for me. <span class='nobr'>In either<\/span> case, I've been bummed\nfor the last month or two, and am now happy. \u3084\u3063\u3068<span class='nobr'>\u51fa\u6765<\/span>\u307e\u3057\u305f\u3002<\/p>\n\n<p>The top of my <i>.emacs<\/i> file now looks like this:<\/p>\n\n<pre>\n   (require 'un-define)\n   (prefer-coding-system       'utf-8)\n   (set-default-coding-systems 'utf-8)\n   (set-terminal-coding-system 'utf-8)\n   (set-keyboard-coding-system 'utf-8)\n<\/pre>\n\n","protected":false},"excerpt":{"rendered":"<p>I finally solved a problem I was having with Japanese input into emacs, and thought I'd report it for the benefit of others that might be searching for a solution.<\/p> <p>A month or so ago, emacs stopped accepting kanji in Japanese input, and stopped displaying kanji in files. Hiragana and katakana continued to input\/display fine, but kanji no longer worked at all.<\/p> <p>I spent a month testing all kinds of things (including some printf-debugging of the emacs source code!), but to make a long story short, it seems that all I needed to do was to add<\/p> <p>to my .emacs [...]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/posts\/426"}],"collection":[{"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/comments?post=426"}],"version-history":[{"count":0,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/posts\/426\/revisions"}],"wp:attachment":[{"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/media?parent=426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/categories?post=426"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/regex.info\/blog\/wp-json\/wp\/v2\/tags?post=426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}