DEV Community

Lam Nguyen
Lam Nguyen

Posted on

Answer: Can I make decode(errors=“ignore”) the default for all strings in a Python 2.7 program?

As mentioned in my thread on the issue the hack from Sven Marnach is even possible without a new function:

import codecs
codecs.register_error("strict", codecs.ignore_errors)

Top comments (0)