Subject Re: [Firebird-Java] GDS Exception. 335544849. Malformed string - using Hibernate/
Author Roman Rokytskyy
> When my Play Framework web application tries to submit and save the Danish
> letters "æøå" I get the error below.
>
> Play uses Hibernate/JPA and Play uses UTF8 for all strings. So I also
> used UTF8 on the Firebird database.
>
> I have tried and changed char set to iso 8859-1 but that did not change
> anything
>
> What can I do to fix the problem?

Please post here part of your hibernate.cfg.xml where the connection is
configured (or if you get it from JNDI, configuration of your JNDI
DataSource).

Most likely you should add ?encoding=UTF8 after the DB name to have
something like this:

jdbc:firebirdsql:localhost/3050:/path/to/mydb.fdb?encoding=UTF8

By default the NONE character set is used, then Jaybird tries to convert
it to byte[] using the systems's default charset.

Roman