Click here to Skip to main content
15,910,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 20-Oct-13 20:58pm
v3

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

hope this will help
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900