<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>a-san</author_name>
  <author_url>https://blog.hatena.ne.jp/a-san/</author_url>
  <blog_title>a-sanの日記</blog_title>
  <blog_url>https://a-san.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>http://php.net/manual/ja/mysqli.set-charset.php ココの方法で回避可能なのですが、DBに依存する部分を少なくしたいので、 mysqli を直接使うのではなく、できれば PEAR の DB クラスを使いたいです。 （上記のリンク先より） &lt;?php $mysqli = new mysqli(&quot;localhost&quot;, &quot;my_user&quot;, &quot;my_password&quot;, &quot;test&quot;); /* 接続状況をチェックします */ if (mysqli_connect_errno()) { printf(&quot;Connect failed: %s\n&quot;, mysq…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa-san.hatenadiary.org%2Fentry%2F20110308%2Fp1&quot; title=&quot; MySQLの文字コードを&amp;quot;UTF-8&amp;quot;に設定しているとき、PHPで文字化けになる場合の回避方法。 - a-sanの日記&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>2011-03-08 00:00:00</published>
  <title> MySQLの文字コードを&quot;UTF-8&quot;に設定しているとき、PHPで文字化けになる場合の回避方法。</title>
  <type>rich</type>
  <url>https://a-san.hatenadiary.org/entry/20110308/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
