Author Topic: Character Rendering Issue  (Read 8964 times)

0 Members and 1 Guest are viewing this topic.

Offline Duke87

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 1007
  • Last Login:Today at 01:45:45 am
Character Rendering Issue
« 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:


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:


However if I go view systems.csv on GitHub in the same Firefox 103.0 on the same computer the characters render normally:



So, the issue is in the site update code perhaps?

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2846
  • Last Login:Today at 01:20:51 pm
Re: Character Rendering Issue
« Reply #1 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.

Offline vdeane

  • Sr. Member
  • ****
  • Posts: 419
  • Gender: Female
  • Last Login:Today at 05:01:11 pm
    • New York State Roads
Re: Character Rendering Issue
« Reply #2 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.
Please note: All comments here represent my own personal opinion and do not reflect the official position of NYSDOT or its affiliates.