Skip to content

Commit e8eaace

Browse files
DOCSP-23996 Add enableUtf8Validation Connectionstring Option (#576)
* DOCSP-23996 Add enableUtf8Validation Connectionstring Option * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Apply suggestions from code review Co-authored-by: Sarah Olson <[email protected]> * * --------- Co-authored-by: Sarah Olson <[email protected]>
1 parent 6d7244d commit e8eaace

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
If you attempt to query or export data with invalid UTF8 characters
2+
the following error message displays:
3+
4+
.. code-block:: none
5+
:copyable: false
6+
7+
Invalid UTF-8 string in BSON document.
8+
9+
To query or export this data, disable UTF8 validation by setting
10+
the ``enableUtf8Validation`` URI option to ``false``.
11+
12+
.. warning::
13+
14+
**Editing data** with ``enableUtf8Validation=false`` can result in
15+
loss of data. This approach is a temporary workaround to
16+
query or export data only.
17+
18+
The following URI disables UTF8 validation:
19+
20+
.. code-block:: javascript
21+
22+
mongodb://localhost:27017/?enableUtf8Validation=false
23+
24+
25+
.. note::
26+
27+
You can also disable this option in the
28+
:ref:`Advanced Connection Options <advanced-connection-tab>` by
29+
selecting :guilabel:`enableUtf8Validation` and entering
30+
``false``.

source/query/filter.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,13 @@ Clear the Query
375375

376376
.. include:: /includes/clear-query.rst
377377

378+
.. _compass-query-invalid-utf8-data:
379+
380+
Query Collections with Invalid UTF8 Data
381+
----------------------------------------
382+
383+
.. include:: /includes/fact-non-utf8-data.rst
384+
378385
How Does the Compass Query Compare to MongoDB and SQL Queries?
379386
--------------------------------------------------------------
380387

0 commit comments

Comments
 (0)