python3 ignore unicode decode errors code example Example: python ignore unicodedecodeerror str.decode('utf-8',errors='ignore')