News for hackers. Stuff that matters.
Re:A popular but wrong way to convert a string to uppercase ... by tedunangst on Tuesday October 08, 2024 @03:18PM (#41780786)
But that's wrong. The upper case for ß is ẞ.
Re:A popular but wrong way to convert a string to uppercase ... by IncreasePosts on Tuesday October 08, 2024 @04:15PM (#41781403)
That was only adopted in Germany like 7 years ago!
Re:A popular but wrong way to convert a string to uppercase ... by kccqzy on Tuesday October 08, 2024 @05:10PM (#41781860)
Well languages and conventions change. The € sign was added not that long ago and it was somewhat painful. The Chinese language uses a single character to refer to chemical elements so when IUPAC names new elements they will invent new characters. Etc.
Re:A popular but wrong way to convert a string to uppercase ... by extraduder_ire on Tuesday October 08, 2024 @09:10PM (#41783486)
Does unicode have space set aside for those new symbols to slot into? I know it's very rare, but it could get messy.
Re:A popular but wrong way to convert a string to uppercase ... by account42 on Wednesday October 09, 2024 @09:16AM (#41787646)
Unicode is already messy. Chinese characters especially so due to han unificiation.
Re:A popular but wrong way to convert a string to uppercase ... by cm2187 on Tuesday October 08, 2024 @04:27PM (#41781531)
C#'s "ToUpper" takes an optional CultureInfo argument if you want to play around with how to treat different languages. Again, solved problem decades ago.
Re:A popular but wrong way to convert a string to uppercase ... by account42 on Wednesday October 09, 2024 @09:14AM (#41787625)
This is not a locale issue, it's a Unicode version issue. Which hightlights another problem with adding this to the base standard library.
Re:A popular but wrong way to convert a string to uppercase ... by Towaway69 on Wednesday October 09, 2024 @02:29AM (#41785090)
Isn't uppercase for ß just ß - i.e. it's its own uppercase character?
Re:A popular but wrong way to convert a string to uppercase ... by bratwurst3000 on Wednesday October 09, 2024 @08:59AM (#41787451)
there shouldn’t be an uppercase version of ß because there is no word in the german language that uses it as the first letter. the german language didnt think of allcaps. please correct me if I am wrong. If written in uppercase it should be converted to SZ or the new uppercase ß…. which my iphone doesn’t have… and converting anything to uppercase SS isn’t something germany wants …
Re:A popular but wrong way to convert a string to uppercase ... by account42 on Wednesday October 09, 2024 @09:22AM (#41787713)
> there shouldn’t be an uppercase version of ß because there is no word in the german language that uses it as the first letter. the german language didnt think of allcaps.

Allcaps (and smallcaps) has always existed in signage everywhere. Before the computing age, letters where just arbitrary metal stamps -- and just whatever you could draw before that. Historically, language was not as standardized as it is today.

Re:A popular but wrong way to convert a string to uppercase ... by Towaway69 on Wednesday October 09, 2024 @05:47PM (#41793036)
I don’t think that Germany wants a capital ß or the German language requires one rather technology needs one to dot the eyes and cross the tees.
Re:A popular but wrong way to convert a string to uppercase ... by account42 on Wednesday October 09, 2024 @09:18AM (#41787669)
Not generally no, but some applications used it that way because of ambiguity of upppercasing ß to SS - which is why ẞ was added.
Re:A popular but wrong way to convert a string to uppercase ... by Towaway69 on Wednesday October 09, 2024 @05:43PM (#41793004)
On the other hand, the German language has existed for several hundred years without having a capital ß but now it needs one?

True capitalisation has always existed but even that didn’t seem to have required a capital ß - why now?