<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pospome</author_name>
  <author_url>https://blog.hatena.ne.jp/pospome/</author_url>
  <blog_title>pospomeのプログラミング日記</blog_title>
  <blog_url>https://www.pospome.work/</blog_url>
  <categories>
    <anon>CentOS</anon>
  </categories>
  <description>Windowsで扱っているファイルはSJISなので、 CentOSやMacのようにUTF-8ベースのOSだと、 文字化けが発生する。ファイルをアップロードするシステムとか作ると、 これが面倒になる。そんなときに見つけたのが「nkfコマンド」。 これはファイルの文字コードを判別 + 変換してくれる。まずはインストール # yum -y install nkf使い方は簡単。文字コードを表示 # nkf -g test.csv文字コードをUTF-8に変換して別名保存 # nkf -w text.csv &gt; aaa.csvこれを使えばプログラムでいちいち変換する必要はないのかもしれない・・・。 今度使…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.pospome.work%2Fentry%2F20130730%2F1375155917&quot; title=&quot;【CentOS】nkfコマンドでファイルの文字コード変更 - pospomeのプログラミング日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-07-30 12:45:17</published>
  <title>【CentOS】nkfコマンドでファイルの文字コード変更</title>
  <type>rich</type>
  <url>https://www.pospome.work/entry/20130730/1375155917</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
