<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>masaqol</author_name>
  <author_url>https://blog.hatena.ne.jp/masaqol/</author_url>
  <blog_title>今週も特にありません</blog_title>
  <blog_url>https://masaqol.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>「rvestで日本語のページをスクレイプしても自動でエンコーディングを推論しているから問題ないよ」的な記事を見かけた 日銀のページはcharset=Shift_JISだが、charset=utf-8のページでも文字化けするケースがあったので、以下を試した 対象はBloombergの国債金利ページ。普通にスクレイプして、２つ目のテーブルだけ取り出すと文字化け &gt; library(rvest) &gt; url &lt;- &quot;http://www.bloomberg.co.jp/markets/rates.html&quot; &gt; HTML &lt;- html(url) &gt; HTML %&gt;% html_table() %&gt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmasaqol.hatenablog.com%2Fentry%2F2015%2F01%2F22%2F011720&quot; title=&quot;rvestでスクレイプした時の文字化けへの対処 - 今週も特にありません&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-22 01:17:20</published>
  <title>rvestでスクレイプした時の文字化けへの対処</title>
  <type>rich</type>
  <url>https://masaqol.hatenablog.com/entry/2015/01/22/011720</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
