Issue 3670: Supply an configuration settings for using Unicode for MySQL
Status:  New
Owner: ----
Reported by crlf0...@gmail.com, Nov 12, 2015
*****************************************************************
*****                                                       *****
***** !!!! THIS BUG TRACKER IS FOR GERRIT CODE REVIEW !!!!  *****
*****                                                       *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, CYANOGENMOD,  *****
***** INTERNAL ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.*****
*****                                                       *****
*****   THOSE ISSUES BELONG IN DIFFERENT ISSUE TRACKERS     *****
*****                                                       *****
*****************************************************************

Affected Version: 2.11

What steps will reproduce the problem?
1. Use UTF-8 as database charset settings and MySQL database
2. Set up a gerrit site using it.
3. Using non-latin characters in commit message and comments.

What is the expected output? What do you see instead?
Everything should display correctly, while actually it displays unrecognizable
characters.

When you use jdbc url in the configuration file, and supply useUnicode=true&characterEncoding=utf8, it looks fine.


Please provide any additional information below.
I think we shall have a configuration settings for this, instead of directly writing it in the url.