data annotations - Special character not encoded in [Required (ErrorMessage = "Latitude must be between -180° and 180°)] -


when validation message given on webpage though, doesn't show proper degree symbol , shows without encoding it.

it appears adding special characters cshtml may best way , following show correct degree symbol in validation message.

<span asp-validation-for="user" class="text-danger">error message &deg;</span> 

Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

laravel - Undefined property: Illuminate\Pagination\LengthAwarePaginator::$id (View: F:\project\resources\views\admin\carousels\index.blade.php) -