<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sonota88</author_name>
  <author_url>https://blog.hatena.ne.jp/sonota88/</author_url>
  <blog_title>memo486</blog_title>
  <blog_url>https://memo88.hatenablog.com/</blog_url>
  <categories>
    <anon>Groovy</anon>
  </categories>
  <description>適当なとこからウェブページをダウンロードして、とりあえず全部 UTF-8 にしてローカルに保存してある。で、それを def parser = new XmlSlurper(new SAXParser()) def page = parser.parse(file_path) でパースすると化ける。 ちょっとよく分からないけどmeta要素のcharset指定を見てる？よく分からないけど次のようにすると良いっぽい。 def page = parser.parse(new File(file_path).newReader(&quot;UTF-8&quot;))</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo88.hatenablog.com%2Fentry%2F20120514%2F1337014144&quot; title=&quot; Groovy/NekoHTML でパース（読み込み）時にエンコーディング指定 - memo486&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>2012-05-14 01:49:04</published>
  <title> Groovy/NekoHTML でパース（読み込み）時にエンコーディング指定</title>
  <type>rich</type>
  <url>https://memo88.hatenablog.com/entry/20120514/1337014144</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
