本文介绍了西班牙人物问题..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
helo all,
假设我有一个西班牙语句子:Haga clicaquí
当我使用htmlencode(Hagaclicaquí)转换它时,最后一个字符í转换为相应的十进制代码(请参阅 [])因此句子出错了但我不想要这仍然我想使用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
推荐答案
function HandleSpecialCharacters(str) {
str = str.replace(/;amp;/g, "&");
str = str.replace(/;hash;/g, "#");
str = str.replace(/;quot;/g, "'");
return str;
}
希望这会有所帮助
hope this will help
这篇关于西班牙人物问题..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!