<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Shell on Ito Archives</title>
    <link>https://itoschum.me/tags/shell/</link>
    <description>Recent content in Shell on Ito Archives</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 10 Nov 2025 01:50:00 -0500</lastBuildDate>
    <atom:link href="https://itoschum.me/tags/shell/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Zsh History File Encoding Issue with UTF-8 Characters</title>
      <link>https://itoschum.me/logs/log_11/</link>
      <pubDate>Mon, 10 Nov 2025 01:50:00 -0500</pubDate>
      <guid>https://itoschum.me/logs/log_11/</guid>
      <description>&lt;h2 id=&#34;issue-description&#34;&gt;Issue Description&lt;/h2&gt;&#xA;&lt;p&gt;When opening .zsh_history file via vim, some UTF-8 encoded characters (e.g. Japanese, Chinese characters) are not displayed correctly, and vim shows the &lt;code&gt;fileencoding&lt;/code&gt; as &lt;code&gt;latin1&lt;/code&gt; instead of &lt;code&gt;utf-8&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;For example, the following shows how Japanese/Chinese characters are displayed incorrectly in vim:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-vim&#34; data-lang=&#34;vim&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;2466&lt;/span&gt; : &lt;span style=&#34;color:#ae81ff&#34;&gt;1762759121&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;&lt;span style=&#34;color:#a6e22e&#34;&gt;locale&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;2467&lt;/span&gt; : &lt;span style=&#34;color:#ae81ff&#34;&gt;1762759501&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;&lt;span style=&#34;color:#a6e22e&#34;&gt;echo&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;ä½&amp;lt;83&amp;gt;&amp;lt;80&amp;gt;å¥½&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;2468&lt;/span&gt; : &lt;span style=&#34;color:#ae81ff&#34;&gt;1762759519&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;&lt;span style=&#34;color:#a6e22e&#34;&gt;echo&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;ã&amp;lt;81&amp;gt;&amp;lt;83&amp;gt;³ã&amp;lt;82&amp;gt;&amp;lt;83&amp;gt;³ã&amp;lt;81&amp;gt;«ã&amp;lt;81&amp;gt;&amp;lt;83&amp;gt;&amp;lt;81&amp;gt;ã&amp;lt;81&amp;gt;¯&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;The actual content of the &lt;code&gt;.zsh_history&lt;/code&gt; file is as follows:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
