I want to return the unicode values from the values of a column in PostgreSQL.
Is this possible? How I do?
Example:
"Renato" : U+0022 U+0052 U+0065 U+006E U+0061 U+0074 U+006F U+0022
I want to do this because I want to discover the Unicode from some symbols and punctuations to add to a conversion regex to replace these values to others.
Get one Unicode code point:
Result:
More in the manual here. A quote:
Get Unicode code points for a string:
Use
string_agginstead if you want a text string as result. For it you have to cast the values to text.