<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>potisan</author_name>
  <author_url>https://blog.hatena.ne.jp/potisan/</author_url>
  <blog_title>potisanのプログラミングメモ</blog_title>
  <blog_url>https://potisan-programming-memo.hatenablog.jp/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>概要 ANSI文字列（ここでは純粋なASCIIエンコーディングの文字列ではなくシステム上でANSI版として扱われる文字列。日本語ではShift-JISエンコーディングの文字列）を格納したバイト配列byte[]をstring型へ変換する場合等、ANSI文字列を扱う場合はエンコーディング時のコードページに注意が必要となります。具体的にはANSI文字列をC#のstring型（Unicode）に変換する場合は次の処理が必要となります。 using System.Text; var buffer = ... var ansiCodePage = CultureInfo.CurrentCulture.Te…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2019%2F03%2F23%2F000000_1&quot; title=&quot;C# 文字列のANSI文字列→Unicode文字列変換時の注意 - potisanのプログラミングメモ&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>2019-03-23 00:00:00</published>
  <title>C# 文字列のANSI文字列→Unicode文字列変換時の注意</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2019/03/23/000000_1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
