fixed: WindowsでUnicodeDecodeError(Scrapbox ChatGPT Connector)
fixed: WindowsでUnicodeDecodeError(Scrapbox ChatGPT Connector)
$ python make_index.py
の実行でエラー
UnicodeDecodeError: 'cp932' codec can't decode byte 0x83 in position 415: illegal multibyte sequence
おっなるほど、ちなみにPythonのバージョンはいくつですか?起動すると表示されると思います

Python 3.11.2でした

じゃあバージョンではなくOS依存の問題っぽい、WindowsのデフォルトエンコーディングがUTF8でないことが原因だと思うので下記の修正を入れました✅
引数で uft-8
を指定するように、 make_index.py
の一部を書換え
python- data = json.load(open(jsonfile))
+ data = json.load(open(jsonfile, encoding='utf-8'))
ググって見つけた対応方法だけど、これでいいのかな?
とりあえず実行してみたところ、大丈夫そう