Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What escape character is \u000a

Tags:

what escape character is

\u000a 

I would like it to be a quotation mark, but this gigantic unicode table I looked at did not account for this one

like image 487
CQM Avatar asked May 24 '11 21:05

CQM


People also ask

What is this character \u000a?

Unicode Character " " (U+000A) The character (Line Feed (Lf)) is represented by the Unicode codepoint U+000A. It is encoded in the Basic Latin block, which belongs to the Basic Multilingual Plane. It was added to Unicode in version 1.1 (June, 1993). It is HTML encoded as 
.

What character is x1B?

The ASCII "escape" character (octal: \033 , hexadecimal: \x1B , or ^[ , or, in decimal, 27 ) is used in many output devices to start a series of characters called a control sequence or escape sequence.

What characters are Unicode?

Unicode covers all the characters for all the writing systems of the world, modern and ancient. It also includes technical symbols, punctuations, and many other characters used in writing text.

How do I find Unicode characters?

To insert a Unicode character, type the character code, press ALT, and then press X. For example, to type a dollar symbol ($), type 0024, press ALT, and then press X. For more Unicode character codes, see Unicode character code charts by script.


2 Answers

Basically it's \n, nl = New line = \u000a in the ASCII table.

In Unicode it's a Line Feed:

  • Line Feed: LF = \n = \u000A

  • Carriage Return: CR = \r = \u000D

See: https://en.wikipedia.org/wiki/ASCII#Code_chart

like image 41
Dorian Avatar answered Jan 13 '23 22:01

Dorian


Without looking at a Unicode table I would say this is a Line Feed (ASCII 10).

like image 129
Oded Avatar answered Jan 14 '23 00:01

Oded