I have set the html meta tag to uft8 Also the form charset to utf8 To be uber sure i have run the php function utf8_encode() on the offending string
even after all this i am getting a postgres error when executing the query via the php function pg_query.
Yet when i copy and paste the query into a command line it executes fine.
The query (or the offending part at least): INSERT INTO locations (... alt_thorfare_name ... ) VALUES (... 'BÓTHAR GHLEANN/SHEÁIN' ...);
The error: Query failed: ERROR: invalid byte sequence for encoding UTF8: 0xd354 HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by client_encoding
The problem being the fada (acute accent from the irish language) on the O and A.
I am totally stuck on what to do next to even attempt finding a solution. Any help appreciated