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