msgpack-postgres icon indicating copy to clipboard operation
msgpack-postgres copied to clipboard

ERROR: invalid byte sequence for encoding "UTF8": 0xa5 or some string convert as true

Open bvsn opened this issue 4 years ago • 0 comments

I've got an issue with the Cyrillic symbols with the length greater than 16

select msgpack_decode(msgpack_encode(jsonb_build_object(
    'name', 'йцуке нгш щзхъфыв'
)));

Interesting, but if you remove just one symbol, the string will converts correctly:

select msgpack_decode(msgpack_encode(jsonb_build_object(
    'name', 'йцуке нгш щзхъфы'
)));

With the 17 symbols I've got an invalid result:

{"name": true}

But should be:

{"name", "йцуке нгш щзхъфыв"}

bvsn avatar Jun 11 '21 12:06 bvsn