<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ohbarye</author_name>
  <author_url>https://blog.hatena.ne.jp/ohbarye/</author_url>
  <blog_title>valid,invalid</blog_title>
  <blog_url>https://ohbarye.hatenablog.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>ohbarye Advent Calendar 2020</anon>
    <anon>emoji</anon>
  </categories>
  <description>emoji から codepoints に変換 &quot;👍&quot;.unpack(&quot;U*&quot;) =&gt; [128077] &quot;👍&quot;.codepoints =&gt; [128077] # Convert to hexadecimal &quot;👍&quot;.each_codepoint.map {|n| n.to_s(16) } =&gt; [&quot;1f44d&quot;] codepoints から emoji に変換 [128077].pack(&quot;U*&quot;) =&gt; &quot;👍&quot; 0x1f44d.chr('UTF-8') =&gt; &quot;👍&quot; &quot;\u{1f44d}&quot; =&gt; &quot;👍&quot; 環境 Ruby 3.0.0</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fohbarye.hatenablog.jp%2Fentry%2F2021%2F01%2F10%2Femoji-codepoints-conversion&quot; title=&quot;Rubyでemojiとcodepointsの変換 - valid,invalid&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>https://avatars3.githubusercontent.com/u/1811616</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-01-10 17:41:55</published>
  <title>Rubyでemojiとcodepointsの変換</title>
  <type>rich</type>
  <url>https://ohbarye.hatenablog.jp/entry/2021/01/10/emoji-codepoints-conversion</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
