@@ -17,7 +17,7 @@ parameters of the connection URI to specify the behavior of the client.
17
17
18
18
.. list-table::
19
19
:header-rows: 1
20
- :widths: 1 1 1 1
20
+ :widths: 30 20 10 40
21
21
22
22
* - Name
23
23
- Accepted Values
@@ -73,6 +73,28 @@ parameters of the connection URI to specify the behavior of the client.
73
73
- Specifies whether to force dispatch **all** operations to the host
74
74
specified in the connection URI.
75
75
76
+ * - **enableUtf8Validation**
77
+ - boolean
78
+ - ``true``
79
+ -
80
+ Specifying ``true`` enables UTF-8 validation for the
81
+ connection. MongoDB throws an error when
82
+ it attempts to serialize string data that contains invalid
83
+ UTF-8 characters to BSON. This applies to both document keys and
84
+ document values, this validation adds processing overhead.
85
+
86
+ Specifying ``false`` disables UTF-8 validation for the
87
+ connection. MongoDB does not throw errors when
88
+ data contains invalid UTF-8 data. If you disable validation,
89
+ your application avoids the validation processing overhead.
90
+ **Editing data** while validation is disabled
91
+ can result in loss of data. Disabling UTF-8 validation is a
92
+ temporary workaround to query or export data only.
93
+
94
+ You can also set UTF-8 validation in your :ref:`Node.js code
95
+ <nodejs-utf-8-validation>`. To learn more about UTF-8 characters,
96
+ see `UTF-8 <https://en.wikipedia.org/wiki/UTF-8>`__ on Wikipedia.
97
+
76
98
* - **heartbeatFrequencyMS**
77
99
- integer greater than or equal to 500
78
100
- ``null``
0 commit comments