{"id":9014,"date":"2024-09-30T23:53:00","date_gmt":"2024-09-30T14:53:00","guid":{"rendered":"http:\/\/hdmr.org\/d\/?p=9014#"},"modified":"2024-10-01T01:53:24","modified_gmt":"2024-09-30T16:53:24","slug":"wp-9014","status":"publish","type":"post","link":"https:\/\/hdmr.org\/d\/wp-9014","title":{"rendered":"Shift_JIS\u3068\u3044\u3046\u3088\u308aCP932"},"content":{"rendered":"<p>\u5148\u65e5\u3001Shift_JIS\u306e\u30c0\u30e1\u6587\u5b57\u306e\u8a71\u3092\u7d39\u4ecb\u3057\u305f\u3002<\/p>\n<p><a href=\".\/wp-9006\">\u30b3\u30e1\u30f3\u30c8\u306b\u3042\u3063\u305f\u30c0\u30e1\u6587\u5b57<\/a><\/p>\n<p>\u7d50\u5c40\u306fShift_JIS\u3092\u4f7f\u3046\u304b\u3089\u30c0\u30e1\u306a\u3093\u3060\u3088\u3068\u3044\u3046\u3053\u3068\u3067UTF-8\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u306b\u3002<\/p>\n<hr>\n<p>\u6614\u3001Python\u3067\u5909\u63db\u7528\u30b9\u30af\u30ea\u30d7\u30c8\u66f8\u3044\u305f\u3088\u306a\u3068\u601d\u3063\u305f\u3089\u3053\u308c\u3060\u308f\u3002<\/p>\n<p><a href=\".\/wp-8180\">\u3069\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3067\u30c9\u30a4\u30c4\u8a9e\u3092\u8868\u3057\u3066\u3044\u308b?<\/a><\/p>\n<p>CP437\u3068\u3044\u3046\u53e4\u3044\u6587\u5b57\u30b3\u30fc\u30c9\u3092UTF-8\u306b\u5909\u63db\u3057\u3066\u8aad\u3081\u308b\u3088\u3046\u306b\u3057\u305f\u3068\u3002<\/p>\n<p>\u3053\u3046\u3044\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u30c4\u30fc\u30eb\u306f\u306a\u304b\u306a\u304b\u306a\u304b\u3063\u305f\u3002<\/p>\n<p>Shift_JIS\u304b\u3089UTF-8\u3078\u306e\u5909\u63db\u306f\u3067\u304d\u308b\u30c4\u30fc\u30eb\u3082\u3044\u308d\u3044\u308d\u3042\u308b\u3051\u3069\u3055\u3002<\/p>\n<p>encoding=&#8217;shift_jis&#8217; \u3067\u958b\u3044\u3066\u3001encoding=&#8217;utf-8&#8242; \u3067\u4fdd\u5b58\u3059\u308b\u3068\u3002<\/p>\n<p>\u3053\u308c\u3067OK\u3060\u308d\u3046\u3068\u6d41\u3059\u3068\u3001can&#8217;t decode byte \u3068\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3002<\/p>\n<p>\u30d0\u30a4\u30c8\u6570\u3067\u8a00\u308f\u308c\u3066\u3082\u308f\u304b\u3093\u306d\u3047\u3088\u3068\u601d\u3044\u3064\u3064\u3001\u30d0\u30a4\u30ca\u30ea\u30a8\u30c7\u30a3\u30bf\u3067\u958b\u3044\u3066\u78ba\u8a8d\u3059\u308b\u3068\u3001<\/p>\n<p>\u300cNo.\u300d \u306e\u5408\u5b57\u306e\u3068\u3053\u308d\u3067\u3072\u3063\u304b\u304b\u3063\u3066\u305f\u3002<\/p>\n<p>\u3042\u3001\u53b3\u5bc6\u306bShift_JIS\u306e\u7bc4\u56f2\u5916\u3060\u3068\u30cf\u30cd\u3089\u308c\u308b\u306e\u306d\u3002<\/p>\n<hr>\n<p>Windows\u3067\u4f7f\u308f\u308c\u3066\u3044\u308bShift_JIS\u3068\u3044\u3046\u306e\u306fJIS X 0208\u306b\u542b\u307e\u308c\u306a\u3044\u5b57\u304c\u5165\u3063\u3066\u3044\u308b\u3002<\/p>\n<p>\u304b\u3064\u3066\u6a5f\u7a2e\u4f9d\u5b58\u6587\u5b57\u306a\u3093\u3066\u8a00\u308f\u308c\u305f\u306e\u306f\u3053\u306e\u3042\u305f\u308a\u306e\u6587\u5b57\u3067\u3042\u308b\u3002<\/p>\n<p>Windows\u3067\u4f7f\u308f\u308c\u3066\u3044\u308b\u62e1\u5f35\u3055\u308c\u305fShift_JIS\u306e\u3053\u3068\u306fCP932\u3068\u547c\u3070\u308c\u308b\u3053\u3068\u304c\u3042\u308b\u3002<\/p>\n<p>CP932\u306b\u3082\u3044\u308d\u3044\u308d\u6b74\u53f2\u304c\u3042\u308b\u3089\u3057\u3044\u306e\u3060\u304c\u3001\u4eca\u306f\u3053\u306e\u7406\u89e3\u3067\u3088\u3044\u3089\u3057\u3044\u3002<\/p>\n<p>Python\u3067\u306f encoding=&#8217;cp932&#8242; \u3092\u6307\u5b9a\u3059\u308c\u3070\u8aad\u307f\u66f8\u304d\u3067\u304d\u308b\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067 encoding=&#8217;cp932&#8242; \u3067\u958b\u3044\u3066\u3001encoding=&#8217;utf-8&#8242; \u3067\u4fdd\u5b58\u3059\u308b\u3068\u3044\u3046\u306e\u304c\u7b54\u3048\u3060\u3063\u305f\u3002<\/p>\n<hr>\n<p>\u306a\u3093\u3067\u305d\u3093\u306a\u5b57\u3092\u30b3\u30e1\u30f3\u30c8\u306b\u4f7f\u3063\u3066\u3093\u3060\u3088\u3068\u306f\u601d\u3046\u3051\u3069\u3001<\/p>\n<p>\u305d\u3053\u3092\u4eca\u3055\u3089\u554f\u3046\u3066\u3082\u4ed5\u65b9\u306a\u3044\u3057\u2026\u2026UTF-8\u306b\u3057\u3066\u3057\u307e\u3048\u3070\u4f55\u3082\u554f\u984c\u306a\u304f\u306a\u308b\u3057\u3002<\/p>\n<p>Windows\u3067\u4f5c\u3063\u305fShift_JIS\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u79fb\u884c\u3068\u3057\u3066\u306f\u3001CP932\u6307\u5b9a\u306e\u65b9\u304c\u5b89\u5168\u306a\u3088\u3046\u3067\u3042\u308b\u3068\u3044\u3046\u30aa\u30c1\u304b\u306a\u3068\u3002<\/p>\n<hr>\n<p>\u79fb\u884c\u3057\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u3044\u308d\u3044\u308d\u5b9f\u9a13\u3057\u3066\u3044\u305f\u3051\u3069\u3001<\/p>\n<p>\u79fb\u690d\u3059\u308b\u4e0a\u3067\u3081\u3093\u3069\u304f\u3055\u3044\u8981\u7d20\u306f\u3044\u308d\u3044\u308d\u3042\u308a\u305d\u3046\u3067\u3059\u306d\u3002<\/p>\n<p>\u4eca\u307e\u3067\u30ce\u30fc\u30de\u30fc\u30af\u3060\u3063\u305f\u30da\u30ea\u30d5\u30a7\u30e9\u30eb\u306b\u4f9d\u5b58\u3059\u308b\u6a5f\u80fd\u304c\u3042\u3063\u305f\u308a\u3001<\/p>\n<p>\u30dd\u30a4\u30f3\u30bf\u578b\u306e\u4f7f\u3044\u65b9\u304c\u8907\u96d1\u602a\u5947\u3060\u3063\u305f\u308a\u2026\u2026<\/p>\n<p>\u3069\u3061\u3089\u3082\u306a\u3093\u3068\u3082\u306a\u3089\u306a\u3044\u8a71\u3067\u306f\u306a\u3044\u306e\u3060\u304c\u3001\u4e01\u5be7\u306b\u6574\u7406\u3057\u306a\u3044\u3068\u9593\u9055\u3046\u3068\u3053\u308d\u306a\u306e\u3067\u3001<\/p>\n<p>\u305f\u3060\u3067\u3055\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306e\u9055\u3044\u3067\u3044\u308d\u3044\u308d\u4fee\u6b63\u304c\u5fc5\u8981\u306a\u306e\u306b\u3001<\/p>\n<p>\u305d\u308c\u306b\u52a0\u3048\u3066\u3053\u3046\u3044\u3046\u8981\u7d20\u3092\u5168\u90e8\u4e01\u5be7\u306b\u898b\u3066\u3044\u304f\u306e\u306f\u3044\u304b\u306b\u3082\u5927\u5909\u3067\u3042\u308b\u3002<\/p>\n<p>\u679c\u305f\u3057\u3066\u3069\u3046\u306a\u308b\u3053\u3068\u3084\u3089\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u65e5\u3001Shift_JIS\u306e\u30c0\u30e1\u6587\u5b57\u306e\u8a71\u3092\u7d39\u4ecb\u3057\u305f\u3002 \u30b3\u30e1\u30f3\u30c8\u306b\u3042\u3063\u305f\u30c0\u30e1\u6587\u5b57 \u7d50\u5c40\u306fShift_JIS\u3092\u4f7f\u3046\u304b\u3089\u30c0\u30e1\u306a\u3093\u3060\u3088\u3068\u3044\u3046\u3053\u3068\u3067UTF-8\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u306b\u3002 \u6614\u3001Python\u3067\u5909\u63db\u7528\u30b9\u30af\u30ea\u30d7\u30c8\u66f8\u3044\u305f\u3088\u306a\u3068\u601d\u3063\u305f\u3089 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-9014","post","type-post","status-publish","format-standard","hentry","category-computer"],"_links":{"self":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts\/9014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9014"}],"version-history":[{"count":1,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts\/9014\/revisions"}],"predecessor-version":[{"id":9015,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts\/9014\/revisions\/9015"}],"wp:attachment":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}