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
Please introduce modules to detect file encoding.
chardet is an option.
chardet
The default behavior of rich-cli opening a file is using system prefered encoding. Windows in some different country have different locale encoding.
So rich-cli will raise error if attempt to open utf-8 files.
The solution is: open file in bytes mode, read the bytes, detect the encoding using chardet module, decode the bytes to text content.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Please introduce modules to detect file encoding.
chardet
is an option.The default behavior of rich-cli opening a file is using system prefered encoding. Windows in some different country have different locale encoding.
So rich-cli will raise error if attempt to open utf-8 files.
The solution is: open file in bytes mode, read the bytes, detect the encoding using
chardet
module, decode the bytes to text content.The text was updated successfully, but these errors were encountered: