-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
便利に使わせて頂いております。
丸付き数字を含むVBAソースで、自動commitされたソースが文字化けしてしまいました。
pythonに詳しくないのですが、encoding='shift-jis'をencoding='CP932'に変更して実験してみたところ、デコード/エンコード出来るみたいです。下記は単体で実験したものです。
#with open('in.txt', 'r', encoding='shift-jis') as f:
# text = f.read()
with open('in.txt', 'r', encoding='CP932') as f:
text = f.read()
with open('out.txt', 'w', encoding='utf-8') as f:
f.write(text)
Metadata
Metadata
Assignees
Labels
No labels