Thread: [pgadmin-hackers] pgAdmin 4 commit: Better handling the non-ascii characters fordifferen

Better handling the non-ascii characters for different database objects.

Using 'psycopg2.extensions.UNICODE' (for Python < 3) in the psycopg2
driver for proper conversation of unicode characters. Also - adjusted
the string typecaster to take care of different character types (char,
character, text, name, character varying, and their array types).

Reviewed by: Dave Page, Murtuza Zabuawala & Akshay Joshi

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=ffa8d94e76be344429b57fd88ccfe5b224fdd136
Author: Harshal Dhumal <harshal.dhumal@enterprisedb.com>

Modified Files
--------------
.../server_groups/servers/databases/__init__.py    |   8 +-
.../servers/databases/casts/__init__.py            |  25 +++---
.../servers/databases/event_triggers/__init__.py   |  46 +++++-----
.../databases/foreign_data_wrappers/__init__.py    |   5 +-
.../foreign_servers/__init__.py                    |   4 +-
.../foreign_servers/user_mapping/__init__.py       |   4 +-
.../servers/databases/schemas/__init__.py          |   8 +-
.../databases/schemas/collations/__init__.py       |   5 +-
.../servers/databases/schemas/domains/__init__.py  |   7 +-
.../schemas/domains/domain_constraints/__init__.py |   7 +-
.../databases/schemas/foreign_tables/__init__.py   |   8 +-
.../schemas/fts_configurations/__init__.py         |  26 +++---
.../databases/schemas/fts_dictionaries/__init__.py |  25 +++---
.../templates/fts_dictionary/sql/default/sql.sql   |   8 +-
.../databases/schemas/fts_parser/__init__.py       |  24 +++--
.../templates/fts_parser/sql/default/sql.sql       |   8 +-
.../databases/schemas/fts_templates/__init__.py    |  12 +--
.../templates/fts_template/sql/default/sql.sql     |   8 +-
.../databases/schemas/functions/__init__.py        |  39 ++------
.../servers/databases/schemas/packages/__init__.py |   4 +-
.../schemas/packages/edbfuncs/__init__.py          |   4 +-
.../databases/schemas/packages/edbvars/__init__.py |   8 +-
.../servers/databases/schemas/tables/__init__.py   |  37 ++++----
.../constraints/check_constraint/__init__.py       |   4 +-
.../constraints/exclusion_constraint/__init__.py   |   4 +-
.../tables/constraints/foreign_key/__init__.py     |  85 +++++++++---------
.../constraints/index_constraint/__init__.py       |  73 +++++++--------
.../databases/schemas/tables/indexes/__init__.py   |  45 +++++-----
.../schemas/tables/templates/rules/sql/create.sql  |   4 +-
.../databases/schemas/tables/triggers/__init__.py  |  71 +++++++--------
.../servers/databases/schemas/types/__init__.py    |   4 +-
.../servers/databases/schemas/views/__init__.py    |  19 +++-
.../server_groups/servers/tablespaces/__init__.py  |   5 +-
web/pgadmin/utils/driver/psycopg2/__init__.py      | 100 ++++++++++++++++++---
34 files changed, 364 insertions(+), 380 deletions(-)