ASP.NET MVC应用程序显示怪异字符 [英] ASP.NET MVC app displaying weird characters

查看:84
本文介绍了ASP.NET MVC应用程序显示怪异字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个ASP.NET MVC应用程序,今天,一个月后,我上传了新的版本,我的服务器(折扣Asp.NET)。从那时起,我有一些问题,以显示一个网页:
http://www.jobbox.com.br/cocoonhealth/profile/gguerini 无效字符显示,而不是页面。

I'm developing an ASP.NET MVC app and today, after one month, I uploaded a new version to my server (Discount Asp.NET). Since that, I'm having some problems to display one of the pages: http://www.jobbox.com.br/cocoonhealth/profile/gguerini Invalid characters are shown instead of the page.

所有其他网页都OK。我试图更改编码,换行等什么也没有!我在我的电脑和另一台服务器上测试:这两个地方的页面的伟大工程,但Discount.asp服务器上,其实不然。我不知道该怎么办。我整天都试图找出发生了什么。

All the other pages are ok. I tried to change the encoding, line breaks and etc. Nothing! I tested on my computer and another server: both places the page works great, but on the Discount.asp server, doesn't. I don't know what to do. I spent the entire day trying to figure out what happened.

http://www.jobbox.com.br/cocoonhealth/ - 主页
http://www.jobbox.com.br/cocoonhealth/profile/gguerini - 问题

http://www.jobbox.com.br/cocoonhealth/ - HOME PAGE http://www.jobbox.com.br/cocoonhealth/profile/gguerini - PROBLEM

我仔细检查一切并没有什么明显错误的。我不知道该怎么做。

I double check everything and there is nothing apparently wrong. I don't know what to so.

您见过任何类似?

我AP preciate你的帮助。

I appreciate your help. G

推荐答案

转到您的的Global.asax.cs 的文件,并在的Application_Error <添加此code / code>事件:

Go to your Global.asax.cs file and add this code in the Application_Error event:

 HttpApplication app = sender as HttpApplication;
 app.Response.Filter = null;

这篇关于ASP.NET MVC应用程序显示怪异字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆