I have a table in PostgreSQL with words, but some words have invalid UTF-8 chars like 0xe7e36f
and 0xefbfbd
.
How I can identify all chars inside words that are invalid and replace they with some symbol like ?
?
EDIT: My database is in UTF-8
, but I think there are double encoding from various other encodings. I think this because when I tried to convert to one type as LATIN1
, I get an error saying that some char don't exists in that encoding, when I change to LATIN2
I get
the same error, but with another character.
So, what is possible to do to solve this?