<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xibbar</author_name>
  <author_url>https://blog.hatena.ne.jp/xibbar/</author_url>
  <blog_title>福島餃子Ruby親方</blog_title>
  <blog_url>https://xibbar.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>1.8の場合 % cat /tmp/test.txt|ruby -Ku -e 'p STDIN.read.split(//).size' 92 1.8の場合は日本語を含む場合は-Kuなどとして、 エンコーディングを指定して、 文字数をカウントする場合はsplit(//)とやって正規表現を使って カウントするというバッドノウハウが必要 1.9の場合 % cat /tmp/test.txt|ruby19 -e 'p STDIN.read.size' 92 1.9の場合は環境変数LANGを見て、自動的にエンコーディングがセットされるので test.txtとLANGのエンコーディングが同じ場合は省略。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxibbar.hatenablog.com%2Fentry%2F20081203%2F1228268083&quot; title=&quot;テキストの文字数をカウントするスクリプトの1.8と1.9の比較 - 福島餃子Ruby親方&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>2008-12-03 10:34:43</published>
  <title>テキストの文字数をカウントするスクリプトの1.8と1.9の比較</title>
  <type>rich</type>
  <url>https://xibbar.hatenablog.com/entry/20081203/1228268083</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
