From f2f2ed9fd550e5fa3d533f9df3932914f46e4ced Mon Sep 17 00:00:00 2001 From: Anthony Tuininga Date: Wed, 28 Sep 2022 17:21:32 -0600 Subject: [PATCH] Update documentation for querying corrupt data. --- doc/src/user_guide/sql_execution.rst | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/doc/src/user_guide/sql_execution.rst b/doc/src/user_guide/sql_execution.rst index 1cd0207..0a25e8f 100644 --- a/doc/src/user_guide/sql_execution.rst +++ b/doc/src/user_guide/sql_execution.rst @@ -744,15 +744,10 @@ Querying Corrupt Data If queries fail with the error "codec can't decode byte" when you select data, then: -* Check your :ref:`character set ` is correct. Review the +* Check if your :ref:`character set ` is correct. Review the :ref:`database character sets `. Check with - :ref:`fetching-raw-data`. Consider using UTF-8, if this is appropriate: - - .. code-block:: python - - connection = oracledb.connect(user="hr", password=userpwd, - dsn="dbhost.example.com/orclpdb", - encoding="UTF-8", nencoding="UTF-8") + :ref:`fetching-raw-data`. Note that the encoding used for all character + data in python-oracledb is "UTF-8". * Check for corrupt data in the database.