Details
-
Bug
-
Resolution: Fixed
-
Major
-
5.1
-
None
-
Ubuntu Server 12.04 LTS, Java 1.6.0_27, MySQL 5.5.
-
N/A
-
N/A
-
Description
I've used the Debian xwiki-mysql installer to install XWiki 5.1.
When saving non-latin characters, in either wiki/wysiwyg editor, such as – Ĉ --, the character gets saved to mysql as a "?"(question mark).
After install, in file:
/etc/xwiki/hibernate.cfg.xml
The connection url has double escape of ampersands &
<property name="connection.url">jdbc:mysql://localhost/xwiki?useServerPrepStmts=false&amp;useUnicode=true&amp;characterEncoding=UTF-8</property>
Removing the double "amp;" fixes this issue.
<property name="connection.url">jdbc:mysql://localhost/xwiki?useServerPrepStmts=false&useUnicode=true&characterEncoding=UTF-8</property>