<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shag</author_name>
  <author_url>https://blog.hatena.ne.jp/shag/</author_url>
  <blog_title>shag の日記</blog_title>
  <blog_url>https://shag.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>utf8 な文字列を特定のバイトサイズで切り分ける処理って Perl でどう書けば一番良いのかを長いこと考えてた(あまり困ってはなかった)んだけど、UTF-8文字列をバイト数でカットした時の末尾の処理 見たら簡単に書けた。 #!/usr/bin/perl use strict; use warnings; use Encode qw( is_utf8 decode _utf8_on ); require bytes; my $utf8 = decode( 'euc-jp', &quot;この日本語テキストは euc-jp で書かれていますが utf8 に変換されます&quot; ); my @splited = …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshag.hatenadiary.org%2Fentry%2F20070618&quot; title=&quot;Perl で utf8 文字列を byte サイズで split する - shag の日記&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>2007-06-18 00:00:00</published>
  <title>Perl で utf8 文字列を byte サイズで split する</title>
  <type>rich</type>
  <url>https://shag.hatenadiary.org/entry/20070618</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
