应用程序在西班牙语中显示额外的字符 [英] application is displaying extra character in spanish

查看:75
本文介绍了应用程序在西班牙语中显示额外的字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的Web应用程序已本地化并支持不同的语言.问题是,当我使用西班牙语运行应用程序时,它会在每个文本/字符串中显示多余的字符.

用英语显示:
更改页面:{4}显示页面< strong> {0}</strong> < strong> {1}</strong>中的项目< strong> {2}</strong>到< strong> {3}</strong>的< strong> {5}</strong>

在西班牙语中显示:
ÉS-Chañgépagéa{4}Dísplayíñgpagé<stróñg> {0}</stróñg> óf<stróñg> {1}</stróñg> ;,ítéms<stróñg> {2}</stróñg> tó<stróñg> {3}</stróñg> óf<stróñg> {5}</stróñg>ÑéCHJkdÁlDJjÍyWrcmHfzüwÍWóRmSL

请帮我.为什么显示这些多余的字符.

谢谢进阶
Shweta

Hi,

My web application is localized and support the different languages. Problem is that when I run my application in Spanish language then it displays extra characters with every text/string.

In English it displays :
Change page: {4} Displaying page <strong>{0}</strong> of <strong>{1}</strong>, items <strong>{2}</strong> to <strong>{3}</strong> of <strong>{5}</strong>

Whilst in Spanish it displays:
ÉS-Chañgé pagéa {4} Dísplayíñg pagé <stróñg>{0}</stróñg> óf <stróñg>{1}</stróñg>, ítéms <stróñg>{2}</stróñg> tó <stróñg>{3}</stróñg> óf <stróñg>{5}</stróñg>ÑéCHJkdÁlDJjÍyWrcmHfzüwÍWóRmSL

Please help me. why it is displaying these extra characters.

Thanks in advanced
Shweta

推荐答案

我最好的猜测是resx文件有问题.在文本编辑器中将其打开并进行调查.

问候
Espen Harlinn
My best guess is that there is someting wrong with the resx file. Open it in a text editor and investigate.

Regards
Espen Harlinn


我认为最简单的方法就是这样做:

I think the easiest thing to do would be to do this:

myString = myString.Replace("strong>", "b>");



然后翻译结果字符串.



and then translate the resulting string.


这篇关于应用程序在西班牙语中显示额外的字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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