Answer the question
In order to leave comments, you need to log in
How to save emoji?
I write json , where one of its fields contains emoji, in the base field with type json , gives such an error
DETAIL: Escape sequence "�" is invalid.
Answer the question
In order to leave comments, you need to log in
melkij=> select jsonb '"\ud83d\ude00"';
jsonb
-------
""
(1 строка)
melkij=> select json_build_object('emoji','');
json_build_object
-------------------
{"emoji" : ""}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question