I use pooled connections (c3p0) and do already specify the encoding:

jdbcUrl="jdbc:mysql://127.0.0.1/mydatabase?useUnicode=true&characterEncoding=UTF-8

I experience an inconsistent behaviour:

Texts from the database only gets scrambled in selects. Umlauts are fine when usinga simple <s:property value=...

The problem really is new since 2.3.7. I updated

- struts2-core
- struts2-tiles-plugin
- xwork-core

Markus

Am 22.11.2012 12:46, schrieb Łukasz Lenart:
2012/11/22 [email protected] <[email protected]>:
Hi Lenart

thanks for replying and the input about encoding the properties files!

Unfortunately encoding the properties file will only solve the problem
partially:

Some texts in selects do come from a database and will still get
scrambled...

You must properly setup connection with UTF-8 encoding eg. for MySql

jdbc:mysql://host/database?characterEncoding=UTF-8

also database must be create with support for UTF-8 as well


Regards


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to