how to replace non-ascii Western Latin characters like '┌''├''⌐''┐''┴' in xml c# -


how remove non ascii characters inverted ''t'' , "l" etc, in xml c#

i have tried sanitize xml string

(character >= 0x20 && character <= 0xd7ff) || (character >= 0xe000 && character <= 0xfffd) || (character >= 0x10000 && character <= 0x10ffff) 

and used regex below:

regex.replace(inputtext, @"[^><#\w\.@-]", ""); (or) string str = str.replace(/[^a-za-z 0-9 \.,\?""!@#\$%\^&\*\(\)-_=\+;:<>\/\\\|\}\{\[\]`~]*/g, '') 

and pattern replace below:

string pattern = @"#x((10?|[2-f])fff[ef]|fdd[0-9a-f]|7f|8[0-46-9a-f]9[0-9a-f])"; 

and

xmlconvert.verifyxmlchars(text); 

but no use, characters looks below: '┌''├''⌐''┐''┴'

please see link https://en.wikipedia.org/wiki/western_latin_character_sets_%28computing%29

└ u+2514 c0 c0
┘ u+2518 d9 d9

please, me out of this. in advance

try  string s = "søme string"; s = regex.replace(s, @"[^\u0000-\u007f]", string.empty);