I have configured /etc/mysql/my.cnf manually to use utf8. See below:
/etc/mysql/my.cnf
utf8
[mysqld] character-set-serve
For your web-app please try characterEncoding=utf8 instead of UTF-8. That resolved my SonarQube container issue.
characterEncoding=utf8