<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shikaku</author_name>
  <author_url>https://blog.hatena.ne.jp/shikaku/</author_url>
  <blog_title>shikaku's blog</blog_title>
  <blog_url>https://blog.systemjp.net/</blog_url>
  <categories>
  </categories>
  <description>#include &lt;fstream&gt; #include &lt;iostream&gt; #include &lt;vector&gt; // エンコーディングを判断するための関数 std::string GetFileEncoding(const std::string&amp; filePath) { std::ifstream file(filePath, std::ios::binary); if (!file) { return &quot;Unknown&quot;; } std::vector&lt;unsigned char&gt; buffer(4); file.read(reinterpret_cast&lt;char*&gt;(&amp;buffer[0…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.systemjp.net%2Fentry%2F2023%2F12%2F12%2F132051&quot; title=&quot;C++でエンコード自動判断関数 - shikaku&amp;#39;s blog&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>2023-12-12 13:20:51</published>
  <title>C++でエンコード自動判断関数</title>
  <type>rich</type>
  <url>https://blog.systemjp.net/entry/2023/12/12/132051</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
