西班牙人物问题.. [英] spanish characters issue..

查看:67
本文介绍了西班牙人物问题..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

helo all,



假设我有一个西班牙语句子:Haga clicaquí



当我使用htmlencode(Hagaclicaquí)转换它时,最后一个字符í转换为相应的十进制代码(请参阅 http://msdn.microsoft.com/en-us/library/ms537495%28v=vs.85%29.aspx [ ^ ])因此句子出错了但我不想要这仍然我想使用htmlencode请帮助。



谢谢

helo all,

suppose i have a sentence in spanish language: Haga clic aquí

and when i convert this using htmlencode(Haga clic aquí) the last character í get converted to corrresponding decimal code(pls refer http://msdn.microsoft.com/en-us/library/ms537495%28v=vs.85%29.aspx[^]) for that so the sentence becomes wrong but i do not want this still i want to use htmlencode pls help.

thank you

推荐答案

检查这两个选项。希望它能解决你的问题。



http://msdn.microsoft.com/en-us/library/39d1w2xf(v = vs.100).aspx [ ^ ]

http://msdn.microsoft.com/en-us/library/zs0350fy(v = VS.90 ).aspx [ ^ ]
Check this two options. Hope it resolves your issue.

http://msdn.microsoft.com/en-us/library/39d1w2xf(v=vs.100).aspx[^]
http://msdn.microsoft.com/en-us/library/zs0350fy(v=vs.90).aspx[^]


function HandleSpecialCharacters(str) {
         str = str.replace(/;amp;/g, "&");
         str = str.replace(/;hash;/g, "#");
         str = str.replace(/;quot;/g, "'");
         return str;
     }



希望这会有所帮助


hope this will help


这篇关于西班牙人物问题..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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