-
Type: Task
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Docs
MongoClient supports the unicode_decode_error_handler argument:
>>> client = MongoClient() >>> client.codec_options.unicode_decode_error_handler 'strict' >>> client = MongoClient(unicode_decode_error_handler='replace') >>> client.codec_options.unicode_decode_error_handler 'replace' >>> client = MongoClient(unicode_decode_error_handler='ignore') >>> client.codec_options.unicode_decode_error_handler 'ignore'
It is also supported in the URI:
>>> client = MongoClient('mongodb://localhost/?unicode_decode_error_handler=ignore') >>> client.codec_options.unicode_decode_error_handler 'ignore'
We should document this feature.