I am tasked with generating an email address for new users in our environment who may have special characters (such as an umlaut and accents) in their full names. While some email systems can handle these characters I am being told to generate email addresses that can convert these characters to a standard ASCII format.
So for example, John Señior would be created as john.senior@... and Jane Fraü would be created as jane.frau@...
Has anyone found a regex expression or library that can handle such a requirement.
UPDATE - I am planning on performing the replacement in PowerShell, but could use any Windows compiled libraries as well.