-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels Not Displaying Emoji After Database Import #21048
Comments
Which database are you running? What collation is it in? I suspect that you're running mssql in a non-unicode collation. It has to be a unicode collation. |
It's MySQL 8.0. The database is `utf8mb4` with collation
`utf8mb4_unicode_ci`. I've not had any issues using emoji prior, it is
simply when transferring to a new machine and importing the SQL database
backup that this happens. And I checked that it was imported in the correct
collation as well.
Happy to check anything else that may resolve this issue, as there are
quite a few labels that would need correcting.
…On Sun, 4 Sep 2022, 13:19 zeripath, ***@***.***> wrote:
Which database are you running?
What collation is it in?
I suspect that you're running mssql in a non-unicode collation.
It has to be a unicode collation.
—
Reply to this email directly, view it on GitHub
<#21048 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABWGN6ZAD22MZJHOT4O26X3V4SATBANCNFSM6AAAAAAQEIHLAA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I guess you need to find out if these characters are I suspect that the issue is that they have been incorrectly imported into your db and they are now If they're correct in the dB then take a look at your charset setting in the database section of the app.ini make sure that's utf8mb4 |
@zeripath they indeed do display as This is the command I used to restore the database, minus of course all the connection bits: Do you perhaps see anything that I may have missed? Since I know initially I had to update the charset/collation to get Gitea to work properly with Unicode, but that seems to have stuck around since I am able to create labels with Unicode and use them just fine. |
So they are not |
@lunny they were not, no. But upon importing them they were. I know Gitea doesn't by default handle |
Just to update, @lunny and @zeripath, turns out Gitea's dump using the command |
In case anyone else stumbles upon this in the interim, I managed to work around this for future use by utilising
This gave a proper output preserving the unicode characters. |
This is strange because From what version of Gitea did you make your dump? |
It was on 1.17's RC, recently updated to I can confirm that the backup dump done via I'm not sure how |
Description
After migrating servers, and importing the Gitea database, existing labels have not retained their emoji, and instead show
?
in the place of unicode emoji. I have checked the database to ensure the collation is correct and that it is usingutf8mb4_unicode_ci
.This only effects existing emoji in labels, but if I create a new set of labels they both display and store correctly.
How can this issue be resolved? How can I have all the existing emoji display correctly again? Is there a task that can be run?
Screenshots
Gitea Version
1.17.1
Can you reproduce the bug on the Gitea demo site?
No
Operating System
Windows 10
Browser Version
Firefox 102
The text was updated successfully, but these errors were encountered: