I’m having a problem with my API endpoint (both PUT and POST). It’s supposed to insert or update records in a PostgreSQL database. The database encoding is set to UTF-8, but unfortunately, any text data I send ends up stored with garbled characters (e.g. Polish letters are replaced by strange symbols).
It doesn’t matter whether I call the endpoint from postman or directly from a browser the result is the same.
Has anyone run into a similar issue?
payload: {
"lok_miejscowosc": "Poznań"
}
Content-Type application/json; charset=UTF-8
db result:
lok_miejscowosc|
---------------+
Poznań |
