3 ms·
TIL U+2103 DEGREE CELSIUS and U+2109 DEGREE FAHRENHEIT.
by saagarjha 7y ago
TIL U+2103 DEGREE CELSIUS and U+2109 DEGREE FAHRENHEIT.
- dionian 7y agoif you're on a Mac, you can use alt-0 for a degrees symbol too
- saagarjha 7y agoThat's actually U+00BA MASCULINE ORDINAL INDICATOR. You want U+00B0 DEGREE SIGN, which is ⌥⇧8.
- doctorhandshake 7y agoUpvoted as one of the most HN comments I’ve ever seen.
- divbzero 7y agoI’m generally amused that a top thread for an N95 sterilization post is a Unicode discussion.
- malandrew 7y agoWhat’s the feminine ordinal indicator. I thought it was a degree sign because as a Portuguese speaker I’ve never noticed the feminine ordinal indicator as an easily accessible option. Are both easily accessible on the iOS keyboard?
- saagarjha 7y agoU+00AA FEMININE ORDINAL INDICATOR is ª, accessible via ⌥9 on macOS.
- lone_haxx0r 7y agoI just realized I have used the ordinal symbol many times when I should have used the degree sign. Why didn't someone tell me? Oh, I've been making an idiot out of myself.
- hanche 7y agoThat depends on the keyboard layout. On the Norwegian keyboard for example, ⌥⇧Q produces the degree symbol, whereas ⌥⇧8 produces U+007B LEFT CURLY BRACKET.
- brian_cunnie 7y agoYou totally blew my mind—I've been using the wrong one for years. Henceforth, ⌥⇧8. Thank you.
- basilgohar 7y agoIt took me a few passes to realize you were not just being comically excited and typing in all caps, but rather, everything you typed is rather pedantically and accurately capitalized.
- saagarjha 7y agoI just copied the DuckDuckGo Unicode Instant Answer (https://duck.co/ia/view/unicode https://duck.co/ia/view/unicode) ;)
- bentcorner 7y agoOn Windows ALT+248 (on keypad) makes a degree symbol: ° IMO it looks better than the single glyph. (°C °F vs ℃ ℉)
- saagarjha 7y agoUnicode agrees: > Several letterlike symbols are used to indicate units. In most cases, however, such as for SI units (Système International), the use of regular letters or other symbols is preferred. > In normal use, it is better to represent degrees Celsius “°C” with a sequence of U+00B0 degree sign + U+0043 latin capital letter c, rather than U+2103 degree celsius. For searching, treat these two sequences as identical. Similarly, the sequence U+00B0 degree sign + U+0046 latin capital letter f is preferred over U+2109 degree fahrenheit, and those two sequences should be treated as identical for searching. (From https://www.unicode.org/versions/Unicode13.0.0/ch22.pdf https://www.unicode.org/versions/Unicode13.0.0/ch22.pdf)
- lone_haxx0r 7y agoThe why include the symbols in the first place? Just in case?
- rkagerer 7y agoSo we can make search that tiny bit more complicated.
- bmn__ 7y agoFor lossless round-tripping with legacy character sets. This is one explicit design goal of Unicode.
- yorwba 7y agoIt's most likely for round-trip compatibility with another encoding. There are many Unicode codepoints that simply represent combinations of other codepoints. If you don't care about round-tripping, just normalize everything to NFKC or NFKD (the difference being that accented letters like á are one codepoint in NFKC and two codepoints for the base letter and combining mark in NFKD).
- anonsubmit2671 7y agoDoes that not appear correctly on your device? Which would that be?
- saagarjha 7y agoNo, it does (a bit squashed, but it's perfectly readable). I didn't know there was as specific Unicode character for those.
- lultimouomo 7y agoAs a rule you can just assume there is, no matter the situation.