{"id":377,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=377"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"use-international-characters-in-the-terminal","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=377","title":{"rendered":"Use\n international characters in the Terminal"},"content":{"rendered":"<p>The Terminal understands Unicode, but as of R4.5, does not display international characters properly by default. Be&#8217;s Fred Fish offers the following notes on this situation:<\/p>\n<blockquote><p> This is not a bug, though it might seem like one. Bash uses the readline library to process input and output. The readline variable that controls whether meta characters are output verbatim or escaped is &#8218;output-meta&#8216; and by default is set to &#8218;off&#8216;. It can be set to &#8218;on&#8216; by creating a file called <code>.inputrc<\/code> in the directory that the environment variable <code>$HOME<\/code> points to [i.e. your <code>\/boot\/home<\/code> folder. -ed], and inserting the command <code>set output-meta on<\/code>.<br \/>\n Part of the reason the current default is the way it is, is that when bash starts up, it calls<\/p>\n<pre> setlocale (LC_CHAR, \"\")<\/pre>\n<p> which returns &#8222;C&#8220;, so it selects to use a &#8222;portable&#8220; locale. This means that it does not switch to &#8222;8-bit mode&#8220; and thus the default when handling some input\/output is to quote characters that are considered &#8222;meta chars&#8220;. We are considering ways to change this behavior. But for now you can use <code>$HOME\/.inputrc<\/code> to get the behavior you want.<br \/>\n Please try also setting <code>input-meta<\/code> to &#8222;on&#8220; and <code>convert-meta<\/code> to &#8222;off&#8220;. <\/p><\/blockquote>\n<p> BeTips.net has heard that this solution does not work in all cases. If you have additional suggestions for getting this to work, please <a href=\"mailto:beos@birdhouse.org\">let us know<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Terminal understands Unicode, but as of R4.5, does not display international characters properly by default. Be&#8217;s Fred Fish offers the following notes on this situation: This is not a bug, though it might seem like one. Bash uses the readline library to process input and output. The readline variable that controls whether meta characters [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[11],"class_list":["post-377","post","type-post","status-publish","format-standard","hentry","tag-terminal"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=377"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/377\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}