https://i.sstatic.net/eGvzJ.jpg
Every now and then, about 1 in every 100 page refreshes, the unicode characters on my page turn into jumbled nonsense (you might need to zoom in to see it clearly). Specifically, the unicode characters are displayed as â–¾
. I'm not sure why this is happening or what it means. The affected characters are the sort indicators on the columns, as well as the ticks of the checkboxes.
I am using the DataTables UI library with its bootstrap integration, and these characters come from the dataTables.bootstrap5.css
file. There doesn't seem to be any network issue, and the css file is being served to the client when the problem occurs. However, the content of the css file appears corrupted (as shown in the comparison from DevTools inspection in the image).
The backend of the project is built on asp.net core 7, and it's an MVC project.
In the head
section of the project, I have already declared support for the utf-8 character set:
<meta charset="utf-8" />
I've attempted replacing the arrows in the css with unicode characters like "\f0d8"
(which represents a "caret up" symbol), but they just appeared as squares.
Just to clarify, this question does not pertain to code-related issues, so please refrain from flagging it as requiring code.