<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>A7M</author_name>
  <author_url>https://blog.hatena.ne.jp/A7M/</author_url>
  <blog_title>C++Builder好きの秘密基地</blog_title>
  <blog_url>https://a7m.hatenablog.jp/</blog_url>
  <categories>
    <anon>C++Builder Tips</anon>
    <anon>C++ Tips</anon>
  </categories>
  <description>Boostのutf8_codecvt_facetをインクルードして、imbueでストリームに設定してやればOK。 libs/detail/utf8_codecvt_facet.cppもインクルードしてやらないとリンクエラーが発生。 UnicodeStringをstd::wstringにしてもちゃんと読み書きできる。 参考URL： http://grayhole.blogspot.com/2008/11/utf8.html http://d.hatena.ne.jp/Cryolite/20041029 #include &lt;iostream&gt; #include &lt;fstream&gt; #include…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa7m.hatenablog.jp%2Fentry%2F20100427%2F1272336030&quot; title=&quot;ストリーム入出力を使用して、文字コードがUTF-8なファイルを読み書きする - C++Builder好きの秘密基地&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>2010-04-27 11:40:30</published>
  <title>ストリーム入出力を使用して、文字コードがUTF-8なファイルを読み書きする</title>
  <type>rich</type>
  <url>https://a7m.hatenablog.jp/entry/20100427/1272336030</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
