ASP.NET MVC 3 jQuery:法语重音字符在屏幕上显示为#233字符 [英] ASP.NET MVC 3 jquery : French accent characters are showing as #233 characters on screen

查看:58
本文介绍了ASP.NET MVC 3 jQuery:法语重音字符在屏幕上显示为#233字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 ASP.NET MVC 3 应用程序,该应用程序具有 english french 中的资源文件. 文本"药房的选举人"存储在法语资源文件中.

I have ASP.NET MVC 3 application having resource files in english and french. A text 'Sélectionner la pharmacie' is stored in a french resource file.

使用剃刀语法从资源文件中读取值时,将显示 而不是"药房".

When the value is read from resource files with razor syntax, it shows 'S#233;lectionner la pharmacie' instead of 'Sélectionner la pharmacie'.

e.g.
@MyResources.Strings_Resources.lbl_SelectPharmacy

有没有办法让它显示法语的重音符号?

Is there a way I can make it show the french accent characters ?

推荐答案

我怀疑您的文本已经编码,并且剃刀试图再次对其进行编码(emem (对所有输出进行编码)

I suspect that your text is already encoded and razor is trying to encode it again (it encodes all outputs)

尝试

@Html.Raw(MyResources.Strings_Resources.lbl_SelectPharmacy)

这篇关于ASP.NET MVC 3 jQuery:法语重音字符在屏幕上显示为#233字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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