Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unicode problem
#3
Thank you. I am trapping Unicode errors when writing the records so the program does not crash. For various reasons I would prefer not to install anything that does not come as standard. Is there another way?

If not then am I correct in thinking that if the UnicodeEncodeError occurs in your code I would need a second line of the type:
text = text.decode()
to convert text from bytes to a string?
Reply


Messages In This Thread
Unicode problem - by Hobson - Feb-10-2020, 10:47 AM
RE: Unicode problem - by snippsat - Feb-10-2020, 11:28 AM
RE: Unicode problem - by Hobson - Feb-10-2020, 12:22 PM
RE: Unicode problem - by snippsat - Feb-10-2020, 01:51 PM
RE: Unicode problem - by Hobson - Feb-10-2020, 02:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unicode string index problem luoheng 6 3,003 Nov-23-2019, 03:04 PM
Last Post: luoheng
  clean unicode string to contain only characters from some unicode blocks gmarcon 2 3,950 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