<?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>
    <anon>MS-Windows</anon>
    <anon>wxHaskell</anon>
    <anon>文字コード</anon>
  </categories>
  <description>日本語を含んだHaskellのソースコードは UTF8 で記述しますがコンパイルされた文字列はHaskellの内部コード UCS4 に変換されます。 Windows システムとの文字列のやり取りは UCS4 から SJIS に変換して書き込み、受信した文字列はSJISからUCS4に変換します。 BSTRの文字コードはUTF16です。日本語を使う分にはUCS4と同じですがフォーマットを変換する必要があるのでAPIを呼んでBSTRに変換します。 import System.Time (getClockTime) import Cinnamon.Ucs (ucs4ToSjis, sjisToUcs4…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20101204%2F1291448007&quot; title=&quot;MS-WIndows 環境での Haskell の文字コード  - 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>https://cdn-ak.f.st-hatena.com/images/fotolife/s/sirocco/20101205/20101205162545.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-12-04 16:33:27</published>
  <title>MS-WIndows 環境での Haskell の文字コード </title>
  <type>rich</type>
  <url>https://sirocco.hatenadiary.org/entry/20101204/1291448007</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
