<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>turusuke_0</author_name>
  <author_url>https://blog.hatena.ne.jp/turusuke_0/</author_url>
  <blog_title>Webdelog</blog_title>
  <blog_url>https://www.webdelog.info/</blog_url>
  <categories>
  </categories>
  <description>nkf は異なる OS 間でファイルのやり取りをするために、文字コードや改行コードなどを変管理できるコマンドラインツールです。 nkf -Lu FILE_NAME #改行コードをLFにする nkf -Lu -w FILE_NAME #改行コードをLFにしてUTF-8コードを出力する(BOMなし) nkf を使って日本語を含んだファイルを指定した際に文字化けすることがありました。 原因 nkf のデフォルトでは入力ファイルの扱いを自動で決めます。 そのため、入力ファイル本来の文字コードと違う文字コードとしてファイルが処理されてしまたっため日本語が化けてしまったようでした。 対応方法 入力に関する…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.webdelog.info%2Fentry%2F2020%2F10%2F24%2F185056&quot; title=&quot;nkf で出力したファイルの日本語が文字化けしたときに見直すこと - Webdelog&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>2020-10-24 18:50:56</published>
  <title>nkf で出力したファイルの日本語が文字化けしたときに見直すこと</title>
  <type>rich</type>
  <url>https://www.webdelog.info/entry/2020/10/24/185056</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
