Subject | Re: [Firebird-Java] GDS Exception. 335544849. Malformed string - using Hibernate/ |
---|---|
Author | Roman Rokytskyy |
Post date | 2009-11-18T14:44:38Z |
> When my Play Framework web application tries to submit and save the DanishPlease post here part of your hibernate.cfg.xml where the connection is
> 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?
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