ASP.NET Core Cyrilic symbols are seen as ???
buzzter99
FREEOP

5 months ago

As the title says after i deployed a .NET mvc web app to railway all cyrilic text which is in the title is seen as ???. Is there any solution to this issue?

Solved$10 Bounty

Pinned Solution

buzzter99
FREEOP

5 months ago

So i troubleshooted the problem and the problem was that the source code files weren't saved in UTF-8 format. One of the solutions is to save all files again in UTF-8 format(https://github.com/dotnet/aspnetcore/issues/21830, https://learn.microsoft.com/en-us/visualstudio/ide/how-to-save-and-open-files-with-encoding?view=vs-2022). The other way is to have unicode characters when setting the title(https://stackoverflow.com/questions/79073388/the-sign-instead-of-cyrillic-characters-in-a-net-project-running-in-docker). So both ways(I used the second one by implementing a service for it) work and after deployment the title of the application is not seen as ???. Hope this helps anyone else dealing with this or similar issue.

1 Replies

5 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 5 months ago


buzzter99
FREEOP

5 months ago

So i troubleshooted the problem and the problem was that the source code files weren't saved in UTF-8 format. One of the solutions is to save all files again in UTF-8 format(https://github.com/dotnet/aspnetcore/issues/21830, https://learn.microsoft.com/en-us/visualstudio/ide/how-to-save-and-open-files-with-encoding?view=vs-2022). The other way is to have unicode characters when setting the title(https://stackoverflow.com/questions/79073388/the-sign-instead-of-cyrillic-characters-in-a-net-project-running-in-docker). So both ways(I used the second one by implementing a service for it) work and after deployment the title of the application is not seen as ???. Hope this helps anyone else dealing with this or similar issue.


Status changed to Solved noahd 5 months ago


Loading...