<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nyarla-net</author_name>
  <author_url>https://blog.hatena.ne.jp/nyarla-net/</author_url>
  <blog_title>カラクリスタ</blog_title>
  <blog_url>https://the.nyarla.jp/</blog_url>
  <categories>
  </categories>
  <description>しばらく前のエントリ Perl で文字列を数字文字参照に変換する方法 でも同じ話題を扱いましたが、出した例、解決策がオーバースペックであまりスマートではなかったので、まとめ直すエントリ。 なお、以下に挙げる例は、Unicode をサポートした Perl(Perl 5.8 以降)を対象にしたものとなります。 数字文字参照へ変換 数字文字参照へ変換する場合、utf8 フラグが重要になってきます。utf8 フラグが立っていないと、うまいこと変換されません。というか日本語などを扱う場合、utf8 フラグは結構重要な気がします。 use Encode; $str = '日本語文字列'; # 日本語の文字…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthe.nyarla.jp%2Fposts%2F2006%2F07%2F02%2F000244%2F&quot; title=&quot;Perlで文字列を一般実体参照や数字文字参照に変換する方法まとめ - カラクリスタ&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>2006-07-02 00:02:44</published>
  <title>Perlで文字列を一般実体参照や数字文字参照に変換する方法まとめ</title>
  <type>rich</type>
  <url>https://the.nyarla.jp/posts/2006/07/02/000244/</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
