<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shan1tian2</author_name>
  <author_url>https://blog.hatena.ne.jp/shan1tian2/</author_url>
  <blog_title>異邦人になってみた～～上海生活写真ブログ</blog_title>
  <blog_url>https://www.sonnagaya.com/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>はてなダイアリーに書いた日本語に無い中国語漢字は全て数値文字参照 に変換されてしまいます。 WordPressに移行しようと思い、調査のため Movable Type形式でデータをエクスポートしたはいいが、数値文字参照のままでは。。。 意味がないのでこの部分を変換してみました。 言語は何でもよかったのですが、丁度手元にあったPHP環境で書きました。 変換の関数ですが、どれを使ったらいいのか分からなくて mb_convert_encoding($str ,'UTF-8','HTML-ENTITIES'); や $convmap = array ( 0x0000, 0xffff, 0x0000, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.sonnagaya.com%2Fentry%2F20131011%2F1381452684&quot; title=&quot;PHPで数値文字参照をUTF-8に変換 - 異邦人になってみた～～上海生活写真ブログ&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>http://cdn-ak.f.st-hatena.com/images/fotolife/s/shan1tian2/20130824/20130824170657.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-10-11 09:51:24</published>
  <title>PHPで数値文字参照をUTF-8に変換</title>
  <type>rich</type>
  <url>https://www.sonnagaya.com/entry/20131011/1381452684</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
