We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Files containing for example Chinese characters do not get parsed and the plugin produces an error similar to this:
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 885: character maps to <undefined>
Easy way to fix this is to modify style_parser.py on lines 99 and 131 by adding encoding='utf8' to the open function.
style_parser.py
encoding='utf8'
open
Before:
98 get_output_panel().set_name(file_path) 99 with open(file_path, 'r') as f: 100 content = f.read()
After:
98 get_output_panel().set_name(file_path) 99 with open(file_path, 'r', encoding='utf8') as f: 100 content = f.read()
The text was updated successfully, but these errors were encountered:
Solves UNICODE issue (really this time)
da3f3c1
Solution for issue subhaze#53 with solution provided in issue subhaze#50
I've merged @katerlouis PR, so this should hopefully be fixed.
Sorry, something went wrong.
No branches or pull requests
Files containing for example Chinese characters do not get parsed and the plugin produces an error similar to this:
Easy way to fix this is to modify
style_parser.py
on lines 99 and 131 by addingencoding='utf8'
to theopen
function.Before:
After:
The text was updated successfully, but these errors were encountered: