Fixed encoding issue while saving data in encoded charset other than 'utf-8'. Fixes #4684

This commit is contained in:
Yogesh Jain 2020-04-17 16:30:22 +05:30 committed by Akshay Joshi
parent d8ad0b8faf
commit 52d031f2d0
2 changed files with 3 additions and 1 deletions

View File

@ -37,6 +37,7 @@ Bug fixes
| `Issue #4440 <https://redmine.postgresql.org/issues/4440>`_ - Ensure the DROP statements in reverse engineered SQL are properly quoted for all objects.
| `Issue #4445 <https://redmine.postgresql.org/issues/4445>`_ - Ensure all object names in the title line of the reverse-engineered SQL are not quoted.
| `Issue #4512 <https://redmine.postgresql.org/issues/4512>`_ - Fixed calendar opening issue on the exception tab inside the schedules tab of pgAgent.
| `Issue #4684 <https://redmine.postgresql.org/issues/4684>`_ - Fixed encoding issue while saving data in encoded charset other than 'utf-8'.
| `Issue #4709 <https://redmine.postgresql.org/issues/4709>`_ - Added schema-qualified dictionary names in FTS configuration to avoid confusion of duplicate names.
| `Issue #4856 <https://redmine.postgresql.org/issues/4856>`_ - Enable the save button by default when a query tool is opened with CREATE or other scripts.
| `Issue #4858 <https://redmine.postgresql.org/issues/4858>`_ - Fixed python exception error when user tries to download the CSV and there is a connection issue.

View File

@ -724,7 +724,8 @@ def save(trans_id):
'query_results': query_results,
'_rowid': _rowid,
'transaction_status': transaction_status
}
},
encoding=conn.python_encoding
)