Could it be database character set issue?
The Oracle database character set is WE8ISO8859P15
The same piece of code works on other database with the characterset AL32UTF8.
Can the characterset mess up the data? How can I be sure or troubleshoot further?
The problem was related to the database character set. Installing additional library (orai18n.jar) resolved the problem.