Hi Hackers,
Attached is the patch to fix encoding issues while saving data in encoded
charset other than 'utf-8'.
FYI : While using the local charset latin-9 (ISO 8859-15), if a record
contains an umlaut *ΓΌ *and dataset was updated, then there was error
message 'utf-8' codec can't decode byte 0xfc in positon 761: invalid start
byte', which is fixed in this patch.
Please review.
PFA.
--
Regards,
Yogesh Jain
8982696654
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
)