I have the following code:
stm = con.createStatement();
stm.executeUpdate("INSERT INTO city(id, name) VALUES (1, 'Chambéry');");
When I want to see the rows in my table the output is:
id | name |
----+----------+
1 | ChambΘry |
As you can see the city name in the datatase is ChambΘry instead of Chambéry. This happens also with foreign letters like ñ, which is replaced by ± in the database.
I don't know why this is happening, both server and client encoding are UTF8, I even changed the file encoding in Netbeans to UTF8 in the netbeans.conf
I would appreciate your help