<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iizukaw</author_name>
  <author_url>https://blog.hatena.ne.jp/iizukaw/</author_url>
  <blog_title>はて日記</blog_title>
  <blog_url>https://iizukaw.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>PHP6からは unicode_encode() 関数と unicode_decode() 関数が追加されるらしいのですが、PHP5やPHP4でユニコードエスケープをしたい時のために。 // UTF-8文字列をUnicodeエスケープする。ただし英数字と記号はエスケープしない。 function unicode_decode($str) { return preg_replace_callback(&quot;/((?:[^\x09\x0A\x0D\x20-\x7E]{3})+)/&quot;, &quot;decode_callback&quot;, $str); } function decode_callback($match…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiizukaw.hatenadiary.org%2Fentry%2F20090422&quot; title=&quot;PHPでユニコードエスケープ（unicode_encode, unicode_decode代替） - はて日記&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>2009-04-22 00:00:00</published>
  <title>PHPでユニコードエスケープ（unicode_encode, unicode_decode代替）</title>
  <type>rich</type>
  <url>https://iizukaw.hatenadiary.org/entry/20090422</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
