logoalt Hacker News

K0INyesterday at 10:40 PM1 replyview on HN

I was also startled when python did ß.upper() returns "SS". Which is kind of unsuspected in some cases (if string length changes with an upper call)


Replies

smallerizetoday at 12:21 AM

That's in the standard. https://www.unicode.org/reports/tr21/tr21-5.html

[SpecialCasing] Contains additional case mappings that map to more than one character, such as "ß" to "SS".

show 1 reply