diff --git a/docs/en_US/release_notes_4_21.rst b/docs/en_US/release_notes_4_21.rst index 60022f3f9..608278ff0 100644 --- a/docs/en_US/release_notes_4_21.rst +++ b/docs/en_US/release_notes_4_21.rst @@ -37,6 +37,7 @@ Bug fixes | `Issue #4440 `_ - Ensure the DROP statements in reverse engineered SQL are properly quoted for all objects. | `Issue #4445 `_ - Ensure all object names in the title line of the reverse-engineered SQL are not quoted. | `Issue #4512 `_ - Fixed calendar opening issue on the exception tab inside the schedules tab of pgAgent. +| `Issue #4684 `_ - Fixed encoding issue while saving data in encoded charset other than 'utf-8'. | `Issue #4709 `_ - Added schema-qualified dictionary names in FTS configuration to avoid confusion of duplicate names. | `Issue #4856 `_ - Enable the save button by default when a query tool is opened with CREATE or other scripts. | `Issue #4858 `_ - Fixed python exception error when user tries to download the CSV and there is a connection issue. diff --git a/web/pgadmin/tools/sqleditor/__init__.py b/web/pgadmin/tools/sqleditor/__init__.py index 2d1fd1a5a..1a89514b2 100644 --- a/web/pgadmin/tools/sqleditor/__init__.py +++ b/web/pgadmin/tools/sqleditor/__init__.py @@ -724,7 +724,8 @@ def save(trans_id): 'query_results': query_results, '_rowid': _rowid, 'transaction_status': transaction_status - } + }, + encoding=conn.python_encoding )