Hi Hibernate users,
I'm new to Hibernate. I use it in the persistance layer of a little webapp.
I have a problem with queries that have special characters (é,à,...) in the 'where' clause. I imagine it's an encoding problem.
For example, if I write and log the following hibernate query:
Quote:
from MyClass where myfield like '%algèbre%'
Then, when I put show_sql to true, I get the following query in the logs:
Quote:
select ...sql blablabla... where myfield like '%algèbre%'
I don't understand why Hibernate don't reproduce the same characters in the sql query. Where could I tell Hibernate what encoding to use? Is the previous question weak?
Thank you for your help.