Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCSP-43242: Improve UTF-8 validation documentation to clarify validation occurs on decoded data only #908

Merged
merged 12 commits into from
Oct 14, 2024
Prev Previous commit
Update source/fundamentals/bson/utf8-validation.txt
Co-authored-by: Jordan Smith <45415425+jordan-smith721@users.noreply.github.com>
mayaraman19 and jordan-smith721 authored Oct 14, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 7aabab3107492a6c43729a39764a33a8e73d1850
2 changes: 1 addition & 1 deletion source/fundamentals/bson/utf8-validation.txt
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ valid UTF-8 format when it parses data sent from MongoDB to your application.

.. note::

The current version of the {+driver-short+} automatically substitutes invalid
This version of the {+driver-short+} automatically substitutes invalid
`lone surrogates <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String#utf-16_characters_unicode_code_points_and_grapheme_clusters>`__
with the `replacement character <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toWellFormed>`__
before validation when you send data to MongoDB. Therefore, the validation