Reputation: 8146
What's the meaning of this char?
Upvotes: 146
Views: 229735
Reputation: 3102
This is a representation of Unicode Character 'LINE FEED (LF)' (U+000A)


is the HTML character entity's way of saying: give me the Unicode character at hexadecimal codepoint 0xA
And because hex 0xA is the same as decimal 10, here's another way of getting the same character:
Related:
$ echo -n '
' | recode html..ascii | xxd
00000000: 0a .
✓
$ ascii 0a
ASCII 0/10 is decimal 010, hex 0a, octal 012, bits 00001010: called ^J, LF, NL
Official name: Line Feed
Other names: Newline, \n
Further reading: Bash script to convert from HTML entities to characters
Upvotes: 2
Reputation: 840


is the HTML representation in hex of a line feed
character. It represents a new line on Unix and Unix-like (for example) operating systems.
Upvotes: 4
Reputation: 904
This is an Ascii Key Code for Line Feed (Lf).
You can find a list of the descriptions, together with the decimal and Hex values here enter link description here
Upvotes: 0
Reputation: 45485
This is the ASCII format.
Please consider that:
Some data (like URLs) can be sent over the Internet using the ASCII character-set. Since data often contain characters outside the ASCII set, so it has to be converted into a valid ASCII format.
To find it yourself, you can visit https://en.wikipedia.org/wiki/ASCII, there you can find big tables of characters. The one you are looking is in Control Characters
table.
Digging to table you can find
Oct Dec Hex Name
012 10 0A Line Feed
In the html file you can use Dec and Hex representation of charters
The Dec
is represented with
The Hex
is represented with 

(or you can omit the leading zero 

)
There is a good converter at https://r12a.github.io/apps/conversion/ .
Upvotes: 2
Reputation: 423
It is the equivalent to \n -> LF (Line Feed).
Sometimes it is used in HTML and JavaScript. Otherwise in .NET environments, use Environment.NewLine
.
Upvotes: 31
Reputation: 340733
It's the ASCII/UTF code for LF
(0A
) - Unix-based systems are using it as the newline character, while Windows uses the CR-LF PAIR (OD0A
).
Upvotes: 13
Reputation: 245429
That would be an HTML Encoded Line Feed character (using the hexadecimal value).
The decimal value would be
Upvotes: 154