<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takuya_1st</author_name>
  <author_url>https://blog.hatena.ne.jp/takuya_1st/</author_url>
  <blog_title>それマグで！</blog_title>
  <blog_url>https://takuya-1st.hatenablog.jp/</blog_url>
  <categories>
    <anon>nkf</anon>
    <anon>iconv</anon>
    <anon>uconv</anon>
    <anon>linux</anon>
  </categories>
  <description>１２３４５６７８９０⇛ 1234567890 を実現する方法色々。 全角数字と半角数字の変換は、文字コードとか、何バイト文字とか意識してないと面倒なのですが。。。tr コマンドで出来そうで出来ないんですよね。 文字コードや、マルチバイト、その他のことを考慮すると候補となる手法は数種類ある。 とりえず、sed で sed や vim の置換コマンドでやるなら、 y をつける。 echo １２３４ | sed y/１２３４５/12345/ 1234 だから、全部書くという大雑把な方法をとれる。 sed y/０１２３４５６７８９/0123456789/ もうね、覚えやすいし、思い出しやすいし、コレで…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F2015%2F01%2F03%2F235622&quot; title=&quot;コマンドで全角数字を半角数字(ascii char) を実現する方法（sed/ucov/ruby/phpなど) - それマグで！&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>2015-01-03 23:56:22</published>
  <title>コマンドで全角数字を半角数字(ascii char) を実現する方法（sed/ucov/ruby/phpなど)</title>
  <type>rich</type>
  <url>https://takuya-1st.hatenablog.jp/entry/2015/01/03/235622</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
