I can see  characters on top of my razor page inside the page-content div. I was not able to trace that down and remove it. can anyone help me to remove it?
Asked
Active
Viewed 967 times
3
-
I also faced this issue when I tried to use currency format in my razor from this link http://stackoverflow.com/questions/1071273/currency-formatting Is there any help? – Anh Hoang May 13 '15 at 04:07
4 Answers
0
That's Byte order mark for the UTF-8 BOM in ISO-8859-1. Try to fix encoding in your razor pages.

Dima Pasko
- 1,170
- 12
- 20
0
I had this same issue and was able to remove those symbols by removing the blank row at the top of my View.
Example:
[blank row here] --> remove this
@model RecLeagueBlog.Models.UserRoleViewModel
@{
ViewBag.Title = "EditUser";
Layout = "~/Views/Shared/_DashboardLayout.cshtml";
}
0
Simple way to call static html page using below code.
public ActionResult Index()
{
var staticPageToRender = new FilePathResult("~/uploads/test.html", "text/html");
return staticPageToRender;
}

Yuvraj Randive
- 1
- 3
0
The correct answer is from: How do I make Razor read UTF-8 files without BOM?
Simply add this to your web.config
<system.web>
<globalization fileEncoding="utf-8" />
</system.web>
The BOM symbols are now gone.

TetraDev
- 16,074
- 6
- 60
- 61