Qiang Yu writes: > I have chinese language support problem in gitorious. When type in comments > in chinese in the gitorious > merge request page, the content will be displayed in "????????" after > submit. Does gitoriouse support > chinese? How can I fix this?
Huh, I'm a little surprised this hasn't come up yet. This appears to be caused by a mismatch between the character set specified in your database.yml and the character set in your mysql tables. I just did the following in my local Gitorious installation: - Comment on a merge request entering the unicode symbol U+2665 (♥). This was rendered as a "?" character in the UI. The default character set for the comments table in my database was "latin1" and my database.yml specified utf8 as the character set - In a mysql console I entered "alter table comments convert to character set utf8". This converts the table, both existing data and future rows inserted - Again, I entered the same Unicode character in a merge request comment, and it rendered as expected I'm assuming UTF-8 would be the best character set for Chinese, so that would probably be the safest bet. Is this happening on your own server, or on gitorious.org? Cheers, - Marius -- -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups "Gitorious" group. To unsubscribe from this group and stop receiving emails from it, send an email to gitorious+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.