<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>osn_th</author_name>
  <author_url>https://blog.hatena.ne.jp/osn_th/</author_url>
  <blog_title>カタカタブログ</blog_title>
  <blog_url>https://totech.hateblo.jp/</blog_url>
  <categories>
    <anon>Linux</anon>
  </categories>
  <description>Linux上でシェルスクリプトをSJISを文字化けなく実行・表示するためには以下の点に注意する。※この注意点はSJISに限らず、他の文字コードであっても統一しておく必要がある。 ソースコードの文字コードをSJISにする LANG環境変数をSJISにする。 端末(Windowsの場合はTeraTerm等)の文字コードをSJISにする 上の3つ全て満たされてないSJISのシェルスクリプトは文字化けするだけでなく、下手をすると実行時エラーを引き起こす可能性がある。例えば&quot;義&quot;という文字はSJISだとバッククオート(`)となり、シェル実行時エラーとなるよう。そこで、”義”という文字列をechoで標準出…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftotech.hateblo.jp%2Fentry%2F2014%2F09%2F22%2F071012&quot; title=&quot;Linux上でシェルスクリプトをSJISで実行する - カタカタブログ&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>http://cdn-ak.f.st-hatena.com/images/fotolife/o/osn_th/20140922/20140922070634.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-09-22 07:10:12</published>
  <title>Linux上でシェルスクリプトをSJISで実行する</title>
  <type>rich</type>
  <url>https://totech.hateblo.jp/entry/2014/09/22/071012</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
