Feb-10-2020, 12:22 PM
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?
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?