<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>E_Mattsan</author_name>
  <author_url>https://blog.hatena.ne.jp/E_Mattsan/</author_url>
  <blog_title>エンジニアのソフトウェア的愛情</blog_title>
  <blog_url>https://blog.emattsan.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>ねた</anon>
  </categories>
  <description>Ruby には nkf コマンドを利用するための NKF というライブラリがあります。 docs.ruby-lang.org 文字コードを変換する関数 NKF.nkf オプションは、nkf コマンドのオプションと同じものを文字列で指定します。 # -W 入力に UTF-8 を仮定する # -s Shift_JIS を出力する # -Lw 改行として CRLF を出力する # --katakana-hiragana 片仮名を平仮名に、平仮名を片仮名に変換する NKF.nkf('-W -s -Lw --katakana-hiragana', 'ソフトウェア的愛情') #=&gt; &quot;\x{82BB}\x…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.emattsan.org%2Fentry%2F2025%2F11%2F30%2F180000&quot; title=&quot;Ruby の NKF.nkf のオプションを式で演算する - エンジニアのソフトウェア的愛情&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>https://m.media-amazon.com/images/I/514yQ2vArPL._SL500_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-11-30 18:00:00</published>
  <title>Ruby の NKF.nkf のオプションを式で演算する</title>
  <type>rich</type>
  <url>https://blog.emattsan.org/entry/2025/11/30/180000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
