{"categories":[],"blog_url":"https://blog.systemjp.net/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.systemjp.net%2Fentry%2F2023%2F12%2F12%2F132051\" title=\"C++\u3067\u30a8\u30f3\u30b3\u30fc\u30c9\u81ea\u52d5\u5224\u65ad\u95a2\u6570 - shikaku&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"#include <fstream> #include <iostream> #include <vector> // \u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u5224\u65ad\u3059\u308b\u305f\u3081\u306e\u95a2\u6570 std::string GetFileEncoding(const std::string& filePath) { std::ifstream file(filePath, std::ios::binary); if (!file) { return \"Unknown\"; } std::vector<unsigned char> buffer(4); file.read(reinterpret_cast<char*>(&buffer[0\u2026","provider_url":"https://hatena.blog","type":"rich","version":"1.0","image_url":null,"author_url":"https://blog.hatena.ne.jp/shikaku/","provider_name":"Hatena Blog","blog_title":"shikaku's blog","published":"2023-12-12 13:20:51","url":"https://blog.systemjp.net/entry/2023/12/12/132051","author_name":"shikaku","height":"190","width":"100%","title":"C++\u3067\u30a8\u30f3\u30b3\u30fc\u30c9\u81ea\u52d5\u5224\u65ad\u95a2\u6570"}