jettero says
14 years ago
In one of my projects, I'm using the new line character ␤to show line breaks — people are calling it a “funny character.” What do you see?
latest #24
Altreus says
14 years ago
That's showing up as a box here. The \n character should definitely not show up in HTML :-)
benquick says
14 years ago
it shows up as a small NL. About 1/4 the normal size, bottom right
Altreus says
14 years ago
According to xxd the character you're using is 0xe2, which is not ASCII. ASCII stops at 7F.
立即下載
Altreus says
14 years ago
in UTF-8 e2 is â, but I'm not seeing that. So that means it's actually being interpreted as 0xE290, since there's no byte after it ...
Altreus says
14 years ago
... which is ee 8a 90, which isn't a character :-)
Altreus says
14 years ago
It might be a control char of some sort ...
Altreus says
14 years ago
According to Gnu charmap, E290 is in the 'private use' area of unicode.
Altreus says
14 years ago
So there we are :-) You've used that, not new line at all
jettero says
14 years ago
who said anything about ascii? it's a unicode character, ␤
Altreus says
14 years ago
the new line character is ASCII... if it's not ASCII it's not "the new line character" :s
jettero says
14 years ago
I maybe should have said, "the character designated to represent the newline character offically called SYMBOL FOR NEWLINE"
jettero says
14 years ago
I assumed people could figure it out based on the fact that the actual character was in the tweet and they use it all the time on #perl6
Altreus says
14 years ago
Ah, that is equally a boring box both here and on that page. In the terminal it is a weird robot sperm though.
jettero says
14 years ago
You're not viewing it with the right terminal settings, that's abundantly clear. This document (plurk) is utf-8, ...
jettero says
14 years ago
... that character is more than one byte. When I wget plurk/jettero, it automatically converts it to \u2424, so xxd shows that.
Altreus says
14 years ago
Well, in browser it's a box, presumably because I don't have the full font for some reason.
Altreus says
14 years ago
gawd knows what happens between the browser and the terminal then :-P
jettero says
14 years ago
what platform are you on that doesn't understand utf8?
jettero says
14 years ago
even msie sees the NL symbol.
Altreus says
14 years ago
It's linux/Chrome and everything should be utf-8
jettero says
14 years ago
Well, clearly it isn't … ☠ ☺ ‽
Altreus says
14 years ago
skull, smile, interrobang
jettero says
14 years ago
huh. Probably just your font then.
back to top