I’m having an issue with utf-8 extended characters being rendered as �. I’m developing with .Net Core 2.2 using Microsoft.AspNetCore.SpaServices. I’m using webpack 4.27.1 to bundle my app. I have saved my project files so that they are encoded as UTF-8. I have also confirmed that meta charset=“utf-8” is properly set in the header of my *.cshtml file which hosts my Aurelia app.
As a test I have added a static web page to my application and it can render extended characters just fine locally and when the app is published to Azure.
Yeah, positive. I’ve save then with the appropriate encoding via VS Code. And as I stated in my original post, I have set the <meta charset="utf-8" /> tag in my Index.cshtml file.
Are you loading the JSON files via xhr Backend? If so take a look into devtools Network tab to see in which format they arrive. We need to figure out whether its a Server or Frontend issue
I figure out the problem. It appears that somehow my ES translation file was double encoded – I’m guessing. I noticed in VS Code that even though my file was encoded properly as UTF-8, I was still seeing the � characters.