What is the character?

前端 未结 6 942
忘掉有多难
忘掉有多难 2021-01-31 12:57

What\'s the meaning of this char?

相关标签:
6条回答
  • 2021-01-31 13:25

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

    0 讨论(0)
  • 2021-01-31 13:31

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

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

    0 讨论(0)
  • 2021-01-31 13:33

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

    0 讨论(0)
  • 2021-01-31 13:38

    
 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.

    You can find a list of such characters at (for example) http://la.remifa.so/unicode/latin1.html

    0 讨论(0)
  • 2021-01-31 13:46

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

    The decimal value would be 


    0 讨论(0)
  • 2021-01-31 13:47

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

    0 讨论(0)
提交回复
热议问题