Nikolay Traykov
Nikolay Traykov

Reputation: 1695

Wicket - question marks when inserting cyrillic characters to the database

I am using wicket, spring and mysql. When I try to insert cyrilic characters to the database instead of the characters I see question marks ('?????').

When I use the i18n files I don't have such kind of problem. Also, when inserting characters from other place (i.e. mysql workbench) there is no problem. In other words, the problem is not in the database. The database and my html documents are in utf-8.

Could you please help me solve this problem.

Cheers! Nikolay

Upvotes: 0

Views: 418

Answers (1)

tetsuo
tetsuo

Reputation: 10896

Wicket has two more encoding-related settings, try this (in you Application initialization):

getMarkupSettings().setDefaultMarkupEncoding("utf-8");

getRequestCycleSettings().setResponseRequestEncoding("utf-8")

Upvotes: 1

Related Questions