我使用以下格式字符串格式化数字串## ##,在某些时候,我需要回头这些数字串样(1 234 567)成类似1234567我试图剥离出空字符却发现
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 1234567. I am trying to strip out the empty chars but found that
value = value.Replace(" ", "");
由于某种原因而字符串保持为1 234 567望着我找到字符串之后,
for some reason and the string remain 1 234 567. After looking at the string I found that
值[1]为160。
我想知道什么价值160的手段?
I was wondering what the value 160 means?
答案是看在统一code code图 - 在这里您可以找到的Latin-1补充图;这表明,U + 00A0(160按你的标题,而不是167%的身体)是一种非换空间。
The answer is to look in Unicode Code Charts - where you'll find the Latin-1 supplement chart; this shows that U+00A0 (160 as per your title, not 167 as per the body) is a non-breaking space.