Skip to content

ソース内の丸付き数字 #5

@neuromancersho

Description

@neuromancersho

便利に使わせて頂いております。

丸付き数字を含む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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions