<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mas-higa</author_name>
  <author_url>https://blog.hatena.ne.jp/mas-higa/</author_url>
  <blog_title>ひがきの日記</blog_title>
  <blog_url>https://mas-higa.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>mixi の Ruby コミュと ruby-list ML で同じような話題があったのでメモ。C 言語脳でプログラミングすると、文字を数値として扱いたくなる場面がある。Ruby 1.8 の頃は、文字列はバイトストリームだったので、C 言語っぽいコードが書けた。 RUBY_VERSION # =&gt; &quot;1.8.7&quot; &quot;A&quot;[0] # =&gt; 65 (0x41) 0x41.chr # =&gt; &quot;A&quot; &quot;檜&quot;[0] # =&gt; 219 (0xdb) &quot;檜&quot;[1] # =&gt; 216 (0xd8) 0xdb.chr + 0xd8.chr # =&gt; &quot;檜&quot; Ruby 1.9 からは、文字列は文字の集まりになった。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmas-higa.hatenadiary.org%2Fentry%2F20090703%2F1246631670&quot; title=&quot;文字コードと文字の変換 - ひがきの日記&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-07-03 23:34:30</published>
  <title>文字コードと文字の変換</title>
  <type>rich</type>
  <url>https://mas-higa.hatenadiary.org/entry/20090703/1246631670</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
