HYPHEN-MINUS (-)
-
Copy Character
Unicode Block
C0 Controls and Basic Latin (Basic Latin)Unicode Code
U+002D
Codepoint
45
Aliases
hyphen, dash, minus sign
Notes
used generically for hyphen, minus sign or en dash, all of which have dedicated alternatives
Character Encoding
UTF-8
0x2D
UTF-16
0x002D
UTF-32
0x0000002D
Copy & Paste Codes
Unicode Escape
\u{002D}
HTML Entity (Decimal)
-
HTML Entity (Hex)
-
CSS Code
\002D
JavaScript/JSON
String.fromCodePoint(0x002D)
Python
chr(0x002D)
Ruby/PHP
chr(0x002D)
Unix, C, PHP, JAVA
0x002D
Perl
chr(0x002D)
URL Encoded
%002d