开发者

Visual Studio project character set problem

开发者 https://www.devze.com 2023-01-28 23:04 出处:网络
I had a Visual Studio 2010 MVC 2 project with spanish characters in my views. I converted the project to Telerik MVC 2 project and now I get weird characters in place of the special characters in my

I had a Visual Studio 2010 MVC 2 project with spanish characters in my views.

I converted the project to Telerik MVC 2 project and now I get weird characters in place of the special characters in my views during execution (they're shown ok 开发者_如何转开发in the aspx code in Visual Studio).

E.g.: I used to see this during execution:

Visual Studio project character set problem

I now I see this:

Visual Studio project character set problem

This only happens with the Master Page content.

In Visual Studio: where do I set the encoding used when saving/loading files? The Telerik conversion seems to have messed that up, right?


I don't know how did the Telerik conversion break that. But I've solved the problem this way:

  1. Created a new master page named Site2.Master

  2. Copied the content from Site.Master to Site2.Master

  3. Deleted Site.Master

  4. Renamed Site2.Master to Site.Master

0

精彩评论

暂无评论...
验证码 换一张
取 消