<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>seiunsky</author_name>
  <author_url>https://blog.hatena.ne.jp/seiunsky/</author_url>
  <blog_title>すがブロ</blog_title>
  <blog_url>https://sugamasao.hatenablog.com/</blog_url>
  <categories>
    <anon>Web</anon>
    <anon>Ruby</anon>
  </categories>
  <description>文字コード変換 Ruby に限らずだと思うけど、以下のように、”波ダッシュ”や”全角ダッシュ”のような文字を NKF でUTF-8 にエンコードする際に文字化けする。 環境としては、入力文字は Windows で入力。プログラムの実行は Solaris 10 で行ってる。 require 'nkf' puts NKF.nkf('-w', '―') ここで NKF のオプションの --cp932 を追加するとうまく行く。 require 'nkf' puts NKF.nkf('-w --cp932', '―') これってSJIS(実態はMS932)を UTF-8 に変換するときのコードポイントの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsugamasao.hatenablog.com%2Fentry%2F20080111%2F1200075088&quot; title=&quot;文字コードファッキング - すがブロ&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>2008-01-11 03:11:28</published>
  <title>文字コードファッキング</title>
  <type>rich</type>
  <url>https://sugamasao.hatenablog.com/entry/20080111/1200075088</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
