无法在wxpython中使用我的文本编辑器打开文件?
wxpython中的文本编辑器无法打开保存的文件。这些文件保存为文本文件,但在打开文件时出现以下错误无法在wxpython中使用我的文本编辑器打开文件?,python,file-io,wxpython,Python,File Io,Wxpython,wxpython中的文本编辑器无法打开保存的文件。这些文件保存为文本文件,但在打开文件时出现以下错误 Error opening file 'charmap' codec can't decode byte 0x8d in position 5: charcter maps to <undefined> 将代码更改为 file = codecs.open(path, 'r',encoding='utf-8') 你为什么不使用编解码器。open()?它确实做到了。。。 file
Error opening file
'charmap' codec can't decode byte 0x8d in position 5: charcter maps to <undefined>
将代码更改为
file = codecs.open(path, 'r',encoding='utf-8')
你为什么不使用编解码器。open()?它确实做到了。。。
file = codecs.open(path, 'r',encoding='utf-8')