Sorry to bother you all, but I really cannot find a better place to post this quesion.
I am using Chinese in fact, so all character set is set to gb2312, and the jdbc connection is also properly set. Since if I hard code the query , it goes quite well. Like this, Session.createQuery(" from table1 where table1.name='问题'"); But when I am using binding parameters ,it cannot find any results. Like this, Session.createQuery("from table1 where table1.name=: name").setString("name","问题"); And if I do the same using english words, all works fine. Even with criteria, the problem still exists. Who can give me a hand, I am really pazzled now. Thanks in advance. -- Thanks for reading comain chen