File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
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 ``.
Original file line number Diff line number Diff line change @@ -375,6 +375,13 @@ Clear the Query
375
375
376
376
.. include:: /includes/clear-query.rst
377
377
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
+
378
385
How Does the Compass Query Compare to MongoDB and SQL Queries?
379
386
--------------------------------------------------------------
380
387
You can’t perform that action at this time.
0 commit comments