<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>minus9d</author_name>
  <author_url>https://blog.hatena.ne.jp/minus9d/</author_url>
  <blog_title>minus9d's diary</blog_title>
  <blog_url>https://minus9d.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>C/C++でどう日本語の文字列を扱えばよいのか、いまだによく分かっていない。頭を整理するために、自分が理解している範囲のことを一度まとめてみる。嘘を書いているかもしれない。また、環境はWindowsのみを想定している。 マルチバイト文字列とワイド文字列 文字列には大きくわけてマルチバイト文字列とワイド文字列の二種類ある。 マルチバイト文字列 まずマルチバイト文字列。マルチバイト文字列は以下のように宣言する。 char strmb[] = &quot;こんにちは”; どの文字コードが使われるかは実行環境によって異なるっぽい（自信なし）。Windows + Visual Studioの場合は多分CP932(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fminus9d.hatenablog.com%2Fentry%2F20131029%2F1383057700&quot; title=&quot;C/C++での日本語文字列の扱い、どうすればよいか - minus9d&amp;#39;s diary&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>2013-10-29 23:41:40</published>
  <title>C/C++での日本語文字列の扱い、どうすればよいか</title>
  <type>rich</type>
  <url>https://minus9d.hatenablog.com/entry/20131029/1383057700</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
