Discussion on a BUG of mojibake(especially regarding Chinese) in the Ghosts uploading in gym

Правка en1, от wmxwmx, 2021-11-16 08:39:19

Discussion on a BUG of mojibake(especially regarding Chinese) in the Ghosts uploading in gym

Hello guys, I am the contest uploader of 2021 Jiangxi Provincial Collegiate Programming Contest and by the time I uploaded it, I encountered a serious bug of mojibake when uploading Ghosts containing Chinese characters. As it is at the middle of Chinese algorithm contests season, I find it necessary to discuss this BUG in public as well as to provide a temporary solution to this BUG for Chinese uploader or anyone who suffering from this bug.

Discovery of the bug

In October $$$25^{th}$$$, after I upload the Ghosts for the contest through FTP servers, all the Chinese characters in the team name became mojibake as the screenshot below.

As I was convinced that gym supports the unicode display of team name in Ghosts, I consulted other uploader who have successfully uploaded team name with Chinese characters to find the bug didn't show up before until recents. Then I tried different methods to upload including paste the content right into the Textboard or use other unicode format and they all failed.

However, I accidentally make it right by turning of the proxy server on my computer as someone suggested that I may have encounter some bug during transmitting the data(But it actually doesn't make any sense since the size of the file have never changed as I checked in ftp). And the most weird part of it is that I tried multiple times afterwards with both FTP and Paste and it all works! So I stuck with the explanation of proxy server.

Reappearance of the bug

In November $$$1^{th}$$$, when the first round of China Collegiate Programming Contest was uploaded in gym, the same problem appears again.

By that time I was just thinking that they may have just encountered the same bug during data transmitting. This thought is invalidated when The 2021 CCPC Guilin Onsite (Grand Prix of EDG) was encountering the same bug when uploading. Apparently it wasn't that simple as I thought it was, since both the problem uploaders, chenjb and Claris are the two of the most prestigious contestants in China. They are definately not the first time to deal with Ghosts uploading comparing to a newbie as myself. So I try to fix the issue with my same old solution and it fails this time.

Temp

Теги gym, bug, chinese, unicode, mojibake

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en5 Английский wmxwmx 2021-11-16 13:25:12 1 Tiny change: 'turning of the prox' -> 'turning off the prox'
en4 Английский wmxwmx 2021-11-16 11:25:47 4
en3 Английский wmxwmx 2021-11-16 10:14:12 123 (published)
en2 Английский wmxwmx 2021-11-16 10:01:05 1682 Tiny change: 'm/103366) and by th' -> 'm/103366) [contest:103366] and by th'
en1 Английский wmxwmx 2021-11-16 08:39:19 2817 Initial revision (saved to drafts)