Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor Server doesn't display special characters

$
0
0

I have a problem related to Blazor Server, where I cannot use spanish characters like "ñ, á, é, í, ó, ú", because they are being replaced by this char: "�".

I tried with these two approaches, but I get no result nor any change:

var supportedCultures = new[] { new CultureInfo("es-AR") };var options = new RequestLocalizationOptions{    DefaultRequestCulture = new RequestCulture("es-AR"),    SupportedCultures = supportedCultures,    SupportedUICultures = supportedCultures};

And

app.UseRequestLocalization(new RequestLocalizationOptions()    .AddSupportedCultures(new[] { "en-US", "es-AR" })    .AddSupportedUICultures(new[] { "en-US", "es-AR" }));

But it keeps looking like this:

Problem Evidence

EDIT: Something I haven't mentioned is that in a InputSelect it looks like this:

InputSelect Evidence

And it works out of the element. It works in "Pages/", but it doesn't work in "Shared/" and the InputSelect element.

Element Out Evidence


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>