What does char 160 mean in my source code?

前端 未结 8 1054
温柔的废话
温柔的废话 2021-02-05 00:01

I am formatting numbers to string using the following format string \"# #.##\", at some point I need to turn back these number strings like (1 234 567) into something like 1234

相关标签:
8条回答
  • 2021-02-05 00:34

    value.Replace(Convert.ToChar(160).ToString(),"")

    0 讨论(0)
  • 2021-02-05 00:37

    I would suggest using the char overload version:

    value = value.Replace(Convert.ToChar(160), ' ') 
    
    0 讨论(0)
提交回复
热议问题