Fixed umlauts not translating properly for username

This commit is contained in:
2025-10-26 22:48:14 +01:00
parent 8154f98e47
commit 8e1dfd3c37

View File

@@ -11,7 +11,7 @@ public static partial class UsersHelper
throw new ArgumentException("Given name and surname must not be empty.");
string combined = (surname + givenName).ToLowerInvariant();
combined = combined.Replace("ä", "ae").Replace("ö", "oe").Replace("ü", "ue");
// Normalize to decompose accents (e.g., é -> e + ́)
string normalized = combined.Normalize(NormalizationForm.FormD);