Cybersecurity
DevOps Cloud (ADM)
IT Operations Cloud
An error occurs when executing query commands after logging in to NNMi Postgres.
nnm=# select * from nms_interface_groups;
ERROR: character with byte sequence 0xe3 0x82 0xa4 in encoding "UTF8" has no equivalent in encoding "WIN1252"
1.Confirm the current encoding information through the command
nnm=# show client_encoding;
2.If it is the following result
client_encoding
------------------
WIN1252
(1 row)
Modify the encoding by executing the following command
\encoding utf-8
3.Confirm again whether the modification is successful
nnm=# show client_encoding;
client_encoding
-----------------
UTF8
(1 row)
There will be no more errors when executing the query。