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:
The connection url has double escape of ampersands &
Removing the double "amp;" fixes this issue.