<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>myerss555</author_name>
  <author_url>https://blog.hatena.ne.jp/myerss555/</author_url>
  <blog_title>mikan's technical note</blog_title>
  <blog_url>https://namco.hatenablog.jp/</blog_url>
  <categories>
    <anon>C＃</anon>
  </categories>
  <description>テキストファイルを読んでとある処理をさせていたところ、 UTF-8は問題ないが、Shift-JISで文字化けが発生。ファイルのエンコードを判断できないか調べてみたが 完璧な判断ロジックは存在しないらしく、 基本的な判断でさえそれなりのロジックが必要なことがわかった。hnx8氏が公開している「ReadJEnc」という便利なDLLを発見したので 試してみました。※C#で書かれていてソースも公開されています d.hatena.ne.jp 【実行結果】※ReanEncの結果で、StreamReader()に文字エンコードを指定する // // 【ファイルの文字エンコード判定】※Windows7で動作確…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnamco.hatenablog.jp%2Fentry%2F2017%2F02%2F05%2F160119&quot; title=&quot;【C#】ファイルの文字エンコード判定 - mikan&amp;#39;s technical note&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/m/myerss555/20170205/20170205154905.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-02-05 16:01:19</published>
  <title>【C#】ファイルの文字エンコード判定</title>
  <type>rich</type>
  <url>https://namco.hatenablog.jp/entry/2017/02/05/160119</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
