In Python, how to replace all non-UTF-8 characters in a string?
By : Yiendwardsk
Date : March 29 2020, 07:55 AM
wish help you to fix your issue Turns out the problem is not that I am feeding non-UTF-8 characters to MySQL, but that I am feeding four-byte UTF-8 characters to MySQL when it supports only three-(and fewer)byte UTF-8 characters (according to this documentation) This solution retains all the supported UTF-8 characters, and converts the unsupported UTF-8 characters to '?':