pgadmin4 server error message processing

Поиск
Список
Период
Сортировка
От Ioseph Kim
Тема pgadmin4 server error message processing
Дата
Msg-id dd948dd3-e1fd-45f8-980d-891e62493ee7@postgresql.kr
обсуждение исходный текст
Ответы Re: pgadmin4 server error message processing  (Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com>)
Список pgsql-hackers
Hi,

when server message is not english (my server is korean),

pgadmin4 make a error bellow.


   File 
"/usr/lib/python2.7/site-packages/pgadmin4-web/pgadmin/utils/driver/psycopg2/__init__.py", 
line 1612, in _formatted_exception_msg
     self.decode_to_utf8(exception_obj.diag.message_primary)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xec in position 0: 
ordinal not in range(128)


This pgadmin4 is pgadmin4-v2-2.0-1.rhel7.x86_64.rpm package on CentOS7.

It may be a problem utf8 encoding string processing of python 2.7.


I sugesst , if server message is non english, decoding to utf8 is skiped.




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Haribabu Kommi
Дата:
Сообщение: Re: [HACKERS] Pluggable storage
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [HACKERS] taking stdbool.h into use