Posted in
C#
Code to remove  in C#
Mostly occurs while working with html document file.
Best option is to replace all occurrences of this character.
Mostly occurs while working with html document file.
Best option is to replace all occurrences of this character.
html = Regex.Replace(html, "[^\u0000-\u007F]", " ");//for space
html = Regex.Replace(html, "[^\u0000-\u007F]", string.Empty);//for empty string