removing • character in string
i tried to read h开发者_运维百科tml contents by striping html tags in a string. when i try to print that string i got • character. can anyone tell me how to remove this character
Use Replace()
function of String
str = "Hello• World"
str = str.Replace("•", "") 'Hello World
Something like:
stringVal = Encoding.ASCII.GetString(Encoding.ASCII.GetBytes(stringVal)); //Swaps out non-ascii to '?'s.
精彩评论