<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ousttrue</author_name>
  <author_url>https://blog.hatena.ne.jp/ousttrue/</author_url>
  <blog_title>三次元日誌</blog_title>
  <blog_url>https://ousttrue.hatenadiary.org/</blog_url>
  <categories>
    <anon>c++</anon>
  </categories>
  <description>時々必要になるんだけどいつも忘れて調べなおすのでメモ。 WindowsではAPI、それ以外ではiconvが環境に備わっているのでそのまま使える。 ただ、WindowsAPIはcp932とutf8とucs2？くらいしか使えないのでそれ以外が要るときはなんか用意する必要がある。 iconvはiconvで改行の面倒を見てくれないので用途によっては不便になる。 windows #include &lt;windows.h&gt; #include &lt;string&gt; #include &lt;iostream&gt; #include &lt;vector&gt; // const char *text -&gt; const std::str…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fousttrue.hatenadiary.org%2Fentry%2F20080521%2F1211360752&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>2008-05-21 18:05:52</published>
  <title>文字コード変換</title>
  <type>rich</type>
  <url>https://ousttrue.hatenadiary.org/entry/20080521/1211360752</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
