<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sirocco</author_name>
  <author_url>https://blog.hatena.ne.jp/sirocco/</author_url>
  <blog_title>sirocco の書いてもすぐに忘れるメモ</blog_title>
  <blog_url>https://sirocco.hatenadiary.org/</blog_url>
  <categories>
    <anon>Haskell</anon>
  </categories>
  <description>nkf を使用した文字コード変換ライブラリCinnamon についてUCS4⇔UTF8の変換にてバグらしきものを発見したと指摘があります。指摘されているのは UCS4 の1文字を Utf8 の複数バイトに変換する ucs4CharToUtf8Chars 関数です。文字列を変換して比較し、ucs4CharToUtf8Chars について検証してみました。 まず、rfc2279。 module Main where import Data.Bits ((.&amp;.), (.|.), shiftR) import Data.Char (chr, ord) import Codec.Binary.UTF8…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20121204%2F1354590090&quot; title=&quot;nkf を使用した文字コード変換ライブラリCinnamonのUCS4-&amp;gt;UTF8の変換 - sirocco の書いてもすぐに忘れるメモ&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>2012-12-04 12:01:30</published>
  <title>nkf を使用した文字コード変換ライブラリCinnamonのUCS4-&gt;UTF8の変換</title>
  <type>rich</type>
  <url>https://sirocco.hatenadiary.org/entry/20121204/1354590090</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
