Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the unicode character for the close symbol used by Twitter bootstrap?

Just curious, because I just realized it wasn't an actual "x" (annoying how long that took to figure out).

like image 992
Bialecki Avatar asked Sep 21 '11 02:09

Bialecki


People also ask

What is the Unicode character for?

Unicode is an international character encoding standard that provides a unique number for every character across languages and scripts, making almost all characters accessible across platforms, programs, and devices.

What is a Unicode character type?

Unicode. Unicode is a universal character set, ie. a standard that defines, in one place, all the characters needed for writing the majority of living languages in use on computers. It aims to be, and to a large extent already is, a superset of all other character sets that have been encoded.


2 Answers

The multiplication sign ( × ) was a bit too small for what I wanted and increasing the font size broke other things, so I found these larger alternatives:

✕ Multiplication X (U+2715)

  • Decimal HTML entity: ✕
  • Hex HTML entity: ✕

✖ Heavy Multiplication X (U+2716)

  • Decimal HTML entity: ✖
  • Hex HTML entity: ✖

❌ Cross Mark (U+274C)

  • Decimal HTML entity: ❌
  • Hex HTML entity: ❌

I hope these will save somebody some time.

like image 141
Valentin Flachsel Avatar answered Sep 22 '22 12:09

Valentin Flachsel


It uses ×.

You can use the following to obtain the desired information about any character:

$ perl -Mcharnames=:full -CA -e'    printf("U+%04X %s\n", $_, charnames::viacode($_))       for unpack "W*", $ARGV[0]; ' × U+00D7 MULTIPLICATION SIGN 

If you're going to use it in HTML, you can encode it as follows:

$ perl -MHTML::Entities -CA -e'    CORE::say encode_entities($ARGV[0]); ' × × 

Notes:

  • The above programs expect the argument to be encoded using UTF-8.
  • The line breaks can be removed to make true one-liners.
like image 34
ikegami Avatar answered Sep 21 '22 12:09

ikegami