<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tmtms</author_name>
  <author_url>https://blog.hatena.ne.jp/tmtms/</author_url>
  <blog_title>tmtms のメモ</blog_title>
  <blog_url>https://blog.tmtms.net/</blog_url>
  <categories>
    <anon>Crystal</anon>
  </categories>
  <description>2/16 に Crystal 0.12 がリリースされました。 0.12 では Crystal に文字エンコーディング変換の仕組みが導入されました。 Ruby と同じような感じで String#encode や IO#set_encoding 等が追加されました。 といっても Crystal の文字エンコーディングは Ruby とは異なり UTF-8 固定です。そのためString#encode で変換後のデータは String ではなく Slice です。UTF-8 への変換でも同じです。 &quot;ほげ&quot;.encode(&quot;cp932&quot;) #=&gt; [130, 217, 130, 176] &quot;ほげ&quot;.…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.tmtms.net%2Fentry%2F2016%2F02%2F21%2Fcrystal-encoding&quot; title=&quot;Crystalの文字エンコーディング - tmtms のメモ&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>2016-02-21 20:54:27</published>
  <title>Crystalの文字エンコーディング</title>
  <type>rich</type>
  <url>https://blog.tmtms.net/entry/2016/02/21/crystal-encoding</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
