开发者

removing • character in string

开发者 https://www.devze.com 2023-02-18 04:22 出处:网络
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 characterUse Replace() functio

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.
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号