I have a little website and when I do Ctrl+U on the website the UTF-8 characters are not being printed correctly.
For example if I try to print programación it prints programación
This is happening only when I print the value of a variable, it does not happen when I hardcode the text.
For example, <div>@variable</div> prints the content with the encoded values like programación. But the value itself, using the inspector is programación.
But if in the following line I write <div>programación</div> it prints it correctly.
I tried to use httputlity.htmldecode but I got the same result.
I also tried the meta charset=UTF-8 and I saved the .razor file as UTF. Like it is specified in this post but none of those worked.
Is there any way of printing those characters correctly?
I'm using .NET5 if that matters.