What does it mean?

I look at the jitter twitter file and I see this in the template hashes:

Browse Interests{{/i}}\u003C/a\u003E\n \u003C/li\u003E\n {{#logged_in}}\n 

What are these codes?

+44
javascript
Feb 01 '11 at 3:12
source share
4 answers

This is a Unicode character. In this case, \u003C and \u003E mean:

U + 003C <Less than a character

U + 003E> Sign is greater than sign

See the list here.

+80
Feb 01 '11 at 3:14
source share

This is the Unicode character code, which, when parsing JavaScript as a string, is converted to the corresponding character (JavaScript will automatically convert any occurrences of \uXXXX to the corresponding Unicode character). For example, your example:

 Browse Interests{{/i}}</a>\n </li>\n {{#logged_in}}\n 

As you can see, \u003C changes to < (less than the sign) and \u003E changes to > (more than the sign).

In addition to the link posted by Raynos, this page from the Unicode website contains many characters (so many that they decided to annoyingly group them) and this page has a (kind of) good index.

+9
Feb 01 '11 at 3:16
source share

This is unicode char \ u003C = <

+3
Feb 01 '11 at 3:15
source share

These are escape sequences from unicode. Common unicode escape characters look like \uxxxx , where xxxx is the hexadecimal digits of ASCI characters. They are mainly used to insert special characters inside a javascript string.

+2
Feb 01 '11 at 3:14
source share



All Articles