Python Forum
How to convert unicode to koi8-r?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to convert unicode to koi8-r?
#6
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 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!
Reply


Messages In This Thread
RE: How to convert unicode to koi8-r? - by snippsat - Feb-21-2019, 04:18 PM
RE: How to convert unicode to koi8-r? - by DeaD_EyE - Mar-04-2019, 08:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Convert Int Value bigger 256 to Unicode lastyle 4 2,746 Mar-19-2020, 11:48 AM
Last Post: lastyle
  clean unicode string to contain only characters from some unicode blocks gmarcon 2 3,988 Nov-23-2018, 09:17 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020