Sorry I forgot to say I am running an Italian php website with a postgresql DB. Users can write messages eachothers. This is my code: $connessione_db = pg_connect("dbname=xxxxx user=yyyyy password=zzzzzz"); $sql_insert_messaggio="insert into messaggio (text) values ('àèì');"; pg_exec ($connessione_db,$sql_insert_messaggio); and I get that error. If I do not write messages with accents everything works. Is there a way to insert accents with any kind of encoding? -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general