ArneVogel / listudy

Listudy - chess training server
https://listudy.org
GNU Affero General Public License v3.0
292 stars 45 forks source link

Accented characters don't display in variation comments #17

Closed byohano closed 4 years ago

byohano commented 4 years ago

Hello! I've been using Listudy for a while now, but I've been encountering a problem. I've been making studies with comments in my native language (French), but the accented characters don't show up (such as à, é, è, or î). Below is a short PGN example to reproduce the issue

[Event ""] [Site ""] [Date "????.??.??"] [Round ""] [White ""] [Black ""] [Result "*"]

1.e4 e5 2.f4 {A à E é I î O ô U ù Y} *

On Listudy.org, the comment is displayed as "A E I O U Y", ignoring all accented characters. This creates typos in the comments, so reading through the comments becomes harder. Accented characters display fine on the study title or the study description, so it seems the issue is related to the embedded PGN viewer. Could it be possible to fix this?

ArneVogel commented 4 years ago

This seems to be a problem with a library I am using. I forwarded the bug: https://github.com/kevinludwig/pgn-parser/issues/12

ArneVogel commented 4 years ago

Turns out it was a mistake on my part. Should be fixed now. Thanks for letting me know. Let me know if you find any more bugs.

byohano commented 4 years ago

Sure, I'll keep on the lookout. Thank you very much! : D