Travel Mapping

Web Design Discussion => General Web Design Discussion => Topic started by: Duke87 on July 30, 2022, 12:50:07 pm

Title: Character Rendering Issue
Post by: Duke87 on July 30, 2022, 12:50:07 pm
So I noticed that some (though interestingly not all) non-ASCII characters are not rendering properly in the Highway Browser or on route pages:
(https://i.imgur.com/Jc1NuD9.png)

This is happening in Firefox 103.0 on Ubuntu 20.04.4, but I loaded the page up in Chromium and got the same result. Also loaded the page up in Firefox on my phone (Android) and in the Samsung browser on my phone and, likewise, same deal, so the browser doesn't seem to be the key variable here and neither does the OS.

Meanwhile if I view source on the page, I also get question marks in the source:
(https://i.imgur.com/MS1GC27.png)

However if I go view systems.csv on GitHub in the same Firefox 103.0 on the same computer the characters render normally:
(https://i.imgur.com/oHnk1OV.png)


So, the issue is in the site update code perhaps?
Title: Re: Character Rendering Issue
Post by: Jim on July 30, 2022, 02:27:05 pm
See also: https://forum.travelmapping.net/index.php?topic=4480.0

I'm traveling and will not likely have a chance to look into this for a while, but would be happy to try a fix if anyone has ideas.
Title: Re: Character Rendering Issue
Post by: vdeane on July 30, 2022, 06:08:57 pm
How are those characters stored?  If it's just with the unicode character for those symbols, that might cause an issue with text parsing.  I remember when I was setting up my website I learned how it's actually bad form to directly include characters like é in HTML; instead a code like é needs to be used.