i need to replace this "―" character in my c#
string i used replace function in multiple ways it did't work. string and code
example is below:
string str="The Organisation of abc Cooperation
―OIC";
home / developersection / forums / how to replace a character “―” in a c# string?
i need to replace this "―" character in my c#
string i used replace function in multiple ways it did't work. string and code
example is below:
string str="The Organisation of abc Cooperation
―OIC";
Anonymous User
13-Apr-2015This is the case where copy-paste works - if you copy the character to string you are searching for it will work.
You also can use correct representation of Unicode charaters like:
lbl.Text = str.Replace("\u2015", "");