You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use parse_from_file(your_filepath + 'mangos_string.sql')
See error UnicodeDecodeError 'charmap' codec can't decode byte 0x98 in position 3050: character maps to
Expected behavior
Detect encoding using chardet or, a better way, accept encoding param to this function and pass it as the open(filename, 'r', encoding=encoding)
Desktop (please complete the following information):
OS: Windows 10
Python version: 3.10
The text was updated successfully, but these errors were encountered:
Describe the bug
Right now if you parse files different than the system default encoding, parse_from_file generates UnicodeDecodeError.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Detect encoding using chardet or, a better way, accept encoding param to this function and pass it as
the open(filename, 'r', encoding=encoding)
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: