エントリーの編集
                エントリーの編集は全ユーザーに共通の機能です。
                    必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
 - 新着コメント
 
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
          - バナー広告なし
 - ミュート機能あり
 - ダークモード搭載
 
関連記事
decoding shift-jis: "illegal multibyte sequence"
I'm trying to decode a shift-jis encoded string, like this: string.decode('shift-jis').encode('ut... I'm trying to decode a shift-jis encoded string, like this: string.decode('shift-jis').encode('utf-8') to be able to view it in my program. When I come across 2 shift-jis characters, in hex "0x87 0x54" and "0x87 0x55", I get this error: UnicodeDecodeError: 'shift_jis' codec can't decode bytes in position 12-13: illegal multibyte sequence But I'm sure they are valid shift-jis characters: http://www
              
            


2017/07/28 リンク