<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>osyo-manga</author_name>
  <author_url>https://blog.hatena.ne.jp/osyo-manga/</author_url>
  <blog_title>Secret Garden(Instrumental)</blog_title>
  <blog_url>https://secret-garden.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>以下のように nkf を利用すれば全角カナ文字を半角カナ文字に変換できます。 require &quot;nkf&quot; # -w オプションは UTF-8 で出力する # -Z4 オプションは全角カナを半角カナに変換する NKF.nkf(&quot;-w -Z4&quot;, &quot;アナスタシア&quot;) # =&gt; &quot;ｱﾅｽﾀｼｱ&quot; NKF.nkf(&quot;-w -Z4&quot;, &quot;ミルキィホームズ&quot;) # =&gt; &quot;ﾐﾙｷｨﾎｰﾑｽﾞ&quot; 注意 上記の -Z4 オプションでは半角カナ文字を渡した場合に全角カナ文字に変換されてしまいます。 NKF.nkf(&quot;-w -Z4&quot;, &quot;ｱﾅｽﾀｼｱ&quot;) # =&gt; &quot;アナスタシア&quot; この問題を防ぎたい場合は -x…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2015%2F03%2F10%2F230009&quot; title=&quot;Ruby の nkf で、全角カナ文字を半角カナ文字にして出力する - Secret Garden(Instrumental)&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-03-10 23:00:09</published>
  <title>Ruby の nkf で、全角カナ文字を半角カナ文字にして出力する</title>
  <type>rich</type>
  <url>https://secret-garden.hatenablog.com/entry/2015/03/10/230009</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
