r/learnSQL • • 1d ago

Text column is storing accented text weirdly

/r/postgres/comments/1y3sx9v/text_column_is_storing_accented_text_weirdly/
1 Upvotes

1 comment sorted by

1

u/Discordbothost 1d ago

Try `encode(convert_to(your_column, 'UTF8'), 'hex')` on the row with Quarteirão. The ã should show up as `c3a3`. If the bytes are right but the text looks wrong, check how the client reads or displays the result. If you get `cf80` for π, work back through the insert and check what the driver sends.