When trying to execute a SELECT
, using fields that save data in the JSON structure, I see a problem with the data that may come:
SELECT tbl_pf.nome,
tbl_pf.adicionais::JSONB->'recebeTaxa' AS localTaxa
FROM tbl_pf;
ERROR: unsupported Unicode escape sequence
DETAIL: Unicode escape values can not be used for code values above 007F when the encoding server is not UTF8.
When fetching the entire JSON field, there is no error.
This search is done in the terminal, where there is already the configuration to handle UTF8 data coming from the database. (This type of query I can use in other tables with data in JSON, with already treated content, including numerical data.)
I wanted to know if this problem is only in the terminal, that can not identify the encode of the bank, or the BD also has "fault in the registry", since using a routine in PHP for tests, the error was the same? / p>