<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bgxjk531</author_name>
  <author_url>https://blog.hatena.ne.jp/bgxjk531/</author_url>
  <blog_title>Web徒然なるままに</blog_title>
  <blog_url>https://bgxjk531.hatenadiary.org/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>PHPでフォームから日本語の文字列を取得したとき、文字が表示されない事象がある。使用Ver ：PHP5.4以上原因 ：htmlspecialchars関数詳細 ：関数のデフォルト文字エンコーディングがISO-8859-1（Latin-1）からUTF-8に変更された。内部文字エンコーディングをEUC-JPまたはShift−JISを用いている場合は、必ずhtmlspecialchars関数の第三引数に['Shift_JIS']を指定する。$username=htmlspecialchars($_POST['username'], ENT_QUOTES, 'Shift_JIS')これを怠った場合、w…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbgxjk531.hatenadiary.org%2Fentry%2F20140826%2F1409144127&quot; title=&quot;文字が表示されない - Web徒然なるままに&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>2014-08-26 21:55:27</published>
  <title>文字が表示されない</title>
  <type>rich</type>
  <url>https://bgxjk531.hatenadiary.org/entry/20140826/1409144127</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
