<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>anton0825</author_name>
  <author_url>https://blog.hatena.ne.jp/anton0825/</author_url>
  <blog_title>日々精進</blog_title>
  <blog_url>https://anton0825.hatenablog.com/</blog_url>
  <categories>
    <anon>IT</anon>
  </categories>
  <description>※mechanizeのバージョンは1.0.0です。 ○問題 mechanizeでhtmlをparseすると文字化けすることがあります。 ○原因 ・mechanizeは内部的にnokogiriを使っている ・（おそらく）nokogiriはKconvを使って文字コードを変換している ・（おそらく）webから取得したHTMLの文字コードはKconvの文字コード推定機能を使って判別している。この判別結果が間違っていることが原因。 ○解決策 mechanizeからnokogiriにHTMLデータを渡す直前のところでhttpheaderのcharsetを元に文字コード変換を行う。 具体的にはrespons…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanton0825.hatenablog.com%2Fentry%2F20100620%2F1279359741&quot; title=&quot;mechanizeで文字化け - 日々精進&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>2010-06-20 18:42:21</published>
  <title>mechanizeで文字化け</title>
  <type>rich</type>
  <url>https://anton0825.hatenablog.com/entry/20100620/1279359741</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
