New issue
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
A UnicodeDecodeError happened when install tortoise-orm in non-utf8 environment #180
Comments
Is this a non-unicode environment? (as in ASCII or Latin-x) |
I use it in powershell and my Windows system language is Chinese. It use GBK encoding normally. |
I really thought that Windows handles Chinese in unicode... Well, now I have learnt it does not. |
Please test if |
It works. |
- Fixed installing Tortoise-ORM in non-unicode systems. (#180) - `queryset.update()` now correctly uses the DB-specific `to_db_value()` - `fetch_related()` now correctly encodes non-integer keys. - `ForeignKey` fields of type `UUIDField` are now escaped consistently. - Pre-generated ForeignKey fields (e.g. UUIDField) is now checked for persistence correctly. - Duplicate M2M `.add()` now checks using consistent field encoding. - `source_field` Fields are now handled correctly for ordering. - `source_field` Fields are now handled correctly for updating.
Describe the bug
To Reproduce
In
tortoise/__init__.py
line 225Replace "…" with three dots "..." which are ASCII characters.
Expected behavior
Install successfully
Additional context
None
The text was updated successfully, but these errors were encountered: