forum

home / developersection / forums / how to replace a character “―” in a c# string?

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

Takeshi Okada 2305 12-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", "");

.net c# 
Updated on 13-Apr-2015
Can you answer this question?

Answer

1 Answers

Liked By