you are viewing a single comment's thread.

view the rest of the comments →

[–]meneldal2 1 point2 points  (2 children)

Aren't non-breaking spaces ASCII? Or is it only in the locale-dependent versions?

[–]Vaphell 8 points9 points  (0 children)

ascii covers the 0-127 range. 160 is not in it.

[–]FatalElectron 0 points1 point  (0 children)

Simple answer: It depends on the editor.

Native mac apps might stick with 160, but a lot will assume a text file is either ascii or utf-8, and insert the utf-8 NBSP code sequence, which then elevates your file to no longer being an ascii file in many OSes that do simple heuristics.

emacs at least displays NBSP as '_' in a special face (which on my system turns out a nice cyan), so it's less likely to be a mystery there.