
MySQL database: welcome messages with RU characters are become "?"
ArtNRG opened this issue · 2 comments
Description of the Problem
I typing /warp welcome any_warp.
The welcome message I typed looks like "Добро пожаловать на /warp any_warp"
The welcome message in MySQL database looks like "????? ?????????? ?? /warp any_warp"
So after server restart or /mywarp reload the welcome message become "????? ?????????? ?? /warp any_warp" in game.
Steps to Reproduce
- Setup mywarp to use MySQL database.
- Create any warp
- Set welcome message "проверка" or any RU text.
- Type "/mywarp reload" or restart the server
- Use that warp and see all RU characters inside the welcome message become "?" characters.
Affected Version
- MyWarp: 3.0-SNAPSHOT+jenkins-b192.git-91cdc14a6b
- Minecraft and Bukkit Implementation: git-Paper-1469 (MC: 1.12.2)
Should be fixed in the latest devBuild.
Until now, MyWarp did not specify which collation to use for certain text-fields in the MySQL database, including the field which stores welcome-messages. Instead, the MySQL-server's default collation was used. This behaviour could cause the problems you described if the MySQL-sever's default collation is not able to properly handle some strings.
From now on, every text is stores in (the true) UTF-8, hopefully eliminating such problems.