140

What's the meaning of this char?

Boghyon Hoffmann
  • 17,103
  • 12
  • 72
  • 170
Revious
  • 7,816
  • 31
  • 98
  • 147
  • 4
    I know this is an old post, but according to the website in the above comment, is invalid, which is entirely incorrect. – akousmata Mar 06 '14 at 23:30
  • @akousmata: are you saying that the linked website is not correct? – Revious Mar 06 '14 at 23:32
  • 6
    Yes, from the website: ` | | %a = invalid` as you can see from the correct answer, the HTML encoding for is a Line Feed, not invalid as the site claims, unless I'm misunderstanding something about the sites information. – akousmata Mar 06 '14 at 23:44
  • The `` notation is a XML encoding for special characters. See also this article [on Wikipedia](https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references). – Flimtix Oct 27 '21 at 08:25

8 Answers8

150

That would be an HTML Encoded Line Feed character (using the hexadecimal value).

The decimal value would be 


Justin Niessner
  • 242,243
  • 40
  • 408
  • 536
28

It is the equivalent to \n -> LF (Line Feed).

Sometimes it is used in HTML and JavaScript. Otherwise in .NET environments, use Environment.NewLine.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Maxim Daigle
  • 393
  • 3
  • 8
11

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).

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Tomasz Nurkiewicz
  • 334,321
  • 69
  • 703
  • 674
4

It's a linefeed character. How you use it would be up to you.

korona
  • 2,308
  • 1
  • 22
  • 37
3


 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.

Christopher Long
  • 854
  • 4
  • 11
  • 21
eugenevd
  • 810
  • 7
  • 21
2

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 &#x0A (or you can omit the leading zero &#xA)

There is a good converter at https://r12a.github.io/apps/conversion/ .

Alireza Fattahi
  • 42,517
  • 14
  • 123
  • 173
0

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

Christopher Long
  • 854
  • 4
  • 11
  • 21
0

HTML hex character entity for U+000A Line Feed

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: 


StackzOfZtuff
  • 2,534
  • 1
  • 28
  • 25