Merge pull request #202 from LD-Reborn/201-bug-umlauts-not-properly-translated-upon-user-creation

Fixed umlauts not translating properly for username
This commit is contained in:
LD50
2025-10-26 22:48:30 +01:00
committed by GitHub

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);