Mar-04-2019, 08:33 AM
As written is the last thread PyMySQL seems to like utf8mb4 as internal encoding.
The difference: https://www.eversql.com/mysql-utf8-vs-ut...d-utf8mb4/
If your have a
If you get data from outside with a different encoding, you have to decode it first with 'koi8-r' for example.
Then you have your
The difference: https://www.eversql.com/mysql-utf8-vs-ut...d-utf8mb4/
If your have a
str
, there is no need to encode it, the encoding happens implicit in the library.If you get data from outside with a different encoding, you have to decode it first with 'koi8-r' for example.
Then you have your
str
, which is internally encoded with uft8 (or other, depends on Python version) internally.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!