edmundpf / file_tools

Easy file/json file reading and writing tools 🐍 :: py, active
MIT License
0 stars 0 forks source link

Can we specify "encoding=utf8" ? #1

Closed cxwithyxy closed 5 years ago

cxwithyxy commented 5 years ago
(venv) M:\Wechat_SDK>python index.py
Traceback (most recent call last):
  File "index.py", line 12, in <module>
    script_string = get_file_string("frida_scripts/resv_msg.js")
  File "M:\Wechat_SDK\venv\lib\site-packages\file_tools\file.py", line 7, in get_file_string
    return f.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 15: illegal multibyte sequence
edmundpf commented 5 years ago

Just saw this and merged the changes