{"title":"\u3010Rust\u3011Shift-JIS \u30d5\u30a1\u30a4\u30eb\u3092 UTF-8 \u3078\u5909\u63db","categories":[],"published":"2023-10-05 09:00:00","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/N/Naotsugu/20231003/20231003175546.png","version":"1.0","author_name":"Naotsugu","blog_url":"https://blog1.mammb.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog1.mammb.com%2Fentry%2F2023%2F10%2F05%2F090000\" title=\"\u3010Rust\u3011Shift-JIS \u30d5\u30a1\u30a4\u30eb\u3092 UTF-8 \u3078\u5909\u63db - A Memorandum\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/Naotsugu/","blog_title":"A Memorandum","description":"encoding_rs \u30af\u30ec\u30fc\u30c8\u3092\u5229\u7528\u3002 \u30d0\u30a4\u30c8\u30d0\u30c3\u30d5\u30a1\u7d4c\u7531\u3067\u306e\u51e6\u7406\u3068\u306a\u308b\u304c\u3001Shift-JIS\u306f1\u301c2\u30d0\u30a4\u30c8\u3001UTF-8\u306f1\u301c4\u30d0\u30a4\u30c8\u3067\u3001\u5909\u63db\u5f8c\u306e\u30d0\u30a4\u30c8\u6570\u304c\u8aad\u3081\u306a\u3044\u306e\u3067\u610f\u5916\u3068\u9762\u5012\u3002 use std::process; use std::error::Error; use std::io::Write; use std::io::Read; use std::fs::File; use encoding_rs; fn main() { if let Err(err) = run() { println!(\"{}\", err); process::exit(1); } } fn run() ->\u2026","height":"190","width":"100%","type":"rich","provider_url":"https://hatena.blog","url":"https://blog1.mammb.com/entry/2023/10/05/090000","provider_name":"Hatena Blog"}