there is string which has space now the unicode of this space(character) is not 32 but 160. how to remove all the occurence of character having unicode as 160 from given string
[CODE] <script type="text/javascript"> // <![CDATA[ var txt = "The cow jumped over the moon"; var letters = txt.split(""); for(var i = 0; i < letters.length; i++){ if(letters[i].charCodeAt(0) == 160){ delete letters[i]; } } txt = letters.join(""); alert(txt); // ]]> </script> [/CODE]
Help @BII spread the word by sharing this article on Twitter...