gerrit eats non-English characters in review messages

Bug #1160169 reported by Tom Fifield on 2013-03-26
This bug report is a duplicate of:  Bug #979227: convert gerrit's mysql tables to utf8. Edit Remove
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Core Infrastructure

Bug Description


It seems like gerrit doesn't play well with non-English characters - reducing them to question marks after the posting of review messages.

Steps to reproduce:
0) Set encoding to UTF-8 in browser (should already be set by content="text/html; charset=UTF-8" in header) and install appropriate fonts
1) Open a patch in review in gerrit
2) Click review
3) Type non-English characters in the "cover message" box and click submit

What should happen:
English and non-English characters are displayed as they were typed into the "cover message box"

What actually happens:
Question marks are displayed in place of non-English characters

See for an example:

???????????? ?cinder_huawei_conf.xml??????‘<'?????‘>' ???‘>')???

Jeremy Stanley (fungi) wrote :

I notice that glyphs having an analog in ISO/IEC 8859-1 display fine, but (for example) Hiragana does not. This is almost certainly due to Gerrit reencoding between UTF-8 and its underlying MySQL table encoding. Thus I've marked this as a duplicate of our bug to reencode freeform text fields in Gerrit's database.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers