{"provider_name":"Hatena Blog","provider_url":"https://hatena.blog","title":"JavaScript \u6587\u5b57\u5217\u304b\u3089Shift-JIS\u30b3\u30fc\u30c9\u914d\u5217\u3092\u53d6\u5f97\u3059\u308b\u30af\u30e9\u30b9","type":"rich","image_url":null,"url":"https://potisan-programming-memo.hatenablog.jp/entry/2024/09/07/210726","blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","published":"2024-09-07 21:07:26","width":"100%","author_name":"potisan","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2024%2F09%2F07%2F210726\" title=\"JavaScript \u6587\u5b57\u5217\u304b\u3089Shift-JIS\u30b3\u30fc\u30c9\u914d\u5217\u3092\u53d6\u5f97\u3059\u308b\u30af\u30e9\u30b9 - potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","categories":["JavaScript"],"blog_url":"https://potisan-programming-memo.hatenablog.jp/","version":"1.0","author_url":"https://blog.hatena.ne.jp/potisan/","description":"Qiita\u3067TextDecoder\u3092\u4f7f\u3063\u3066Shift-JIS\u30b3\u30fc\u30c9\u3092\u53d6\u5f97\u3059\u308b\u8a18\u4e8b\uff08McbeEringi\u6c0f\uff09\u3092\u898b\u304b\u3051\u307e\u3057\u305f\u3002\u8a18\u4e8b\u4e2d\u306e\u30b3\u30fc\u30c9\u306f\u7406\u89e3\u3067\u304d\u3066\u3044\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u767a\u60f3\u3092\u53c2\u8003\u306bShift-JIS\u30b3\u30fc\u30c9\u914d\u5217\u3092\u53d6\u5f97\u3059\u308b\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002 // Unicode\u30b3\u30fc\u30c9\u30dd\u30a4\u30f3\u30c8\u304b\u3089Shift-JIS\u3078\u306e\u5909\u63db\u6a5f\u80fd\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002 // \u521d\u671f\u5316\u6642\u306b\u91cd\u3044\u51e6\u7406\u304c\u3042\u308a\u307e\u3059\u3002\u3067\u304d\u308b\u9650\u308a\u4f7f\u3044\u307e\u308f\u3057\u3066\u304f\u3060\u3055\u3044\u3002 class SjisEncoder { #sjisToCodePoint; // Uint32Array constructor() { const sjisDecoder = new TextDecoder\u2026"}