When it comes to printing to the console as you are doing there is no such character as a "non breaking space" and it is not normally needed since the console normally has a fixed width font and no interpretation is done that can in any way merge groups of spaces into just one space.
P.S. The ASCII characters have a range from 0x00 to 0x7e so 160 is not an ASCII character.
Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
Joined: Dec 09, 2010
Thank you James.
I found this problem when my team member pasted the string "B = 3 + monthly(A,'mean')+3;C= B;'this is a comment +3 means adding 3" using a messenger. Found it strange in the beginning. and started printing the ascii value of each character using
It was printing 160 for the spaces after " = " character in the input string.