forum

Home / DeveloperSection / Forums / How to replace a character “―” in a C# string?

How to replace a character “―” in a C# string?

Takeshi Okada206212-Apr-2015

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";

lbl.Text = str.Replace("—", "").Replace("&#8212", "");

Updated on 13-Apr-2015

Can you answer this question?


Answer

1 Answers

Liked By