0 Replies Latest reply on Nov 8, 2006 11:39 AM by damo9f

    Special Portugese Characters cause queries to fail

    damo9f Newbie

      We are testing in Portugese and find that if a query condition contains "special" characters such as ã and é the query does not work properly. HOWEVER if we use Hibernate Criterion the query works.

      These characters have integer representations above 128, which may be relevant.

      Deep in the query code (inside Hibernate) I see that the string in question does not show properly in the debugger when it is converted to a PreparedStatement. That is, the string shows fine but the toString() on the PreparedSTatement has the chars in question replaced by the little box that indicates a character is unknown.

      We are using MySQL 4.1 and mysql-connector-java-3.0.16-ga.jar with the following mysql-ds.xml

      <?xml version="1.0" encoding="UTF-8"?>

      Can anyone help us diagnose this issue?