gerrit eats non-English characters in review messages

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

Bug Description

Hi,

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 https://review.openstack.org/#/c/25313/1 for an example:

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

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.