开发者

utf-8 encoding not working on the banner of the webpage

I got a really strange error on some of the webpages I am taking care of.

The banner is not showing the special character properly (ie: é, è, etc.). The catch is that this is only happening in the banner part of the master page. The rest of the page is alw开发者_运维技巧ays showing the characters the way they should but for some reason here is the text I get in the banner:

Conseil de la radiodiffusion et des t�l�communications canadiennes ON the fourm, they are question mark, but on the page, they are the character not found squares.

this is what it should be showing: Conseil de la radiodiffusion et des télécommunications canadiennes

It is an asp.net 4.0 page. The master page is getting the banner from an html file on the server.

  • I tried deleting and recreating the said file and forcing the utf-8 encoding while saving it with vs2010.
  • I tried forcing the utf-8 encoding in the web.config with no results.
  • I tried forcing the utf-8 encoding in the master page with no results.

I really do not think it is the file though since most of the page does not have any problem with the spacial characters. The file is coded right (ascii special characters code like &eacu; are used instead of the character itself).

I think it is something when the master page go get the file to display it but I do not understand nor see how to fix this issue.

thanks


Found the problem, it was a redundacy problem, the file is being stored at 5 or so different places, I found the right one and modified it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜