Repository navigation
Fix Umlaute in mail provider login - #1224
Open
peerschuett wants to merge 4 commits into
Open
peerschuett wants to merge 4 commits into
peerschuett wants to merge 4 commits into
Conversation
added 4 commits
November 23, 2026 14:22
Many users of AI Studio write German, and a mailbox password with an umlaut failed to sign in at Exchange because the encoding was never considered. Agents now keep the German special characters in mind wherever text leaves or enters the app as bytes: the encoding the other side expects, the Unicode normalization, and tests with such characters.
A mailbox now stores how its username and password are encoded when signing in: UTF-8, as before, or Windows-1252, which Microsoft Exchange expects. Mailboxes stored earlier load with UTF-8, and an encoding this version does not know keeps the mailbox from signing in at all. Windows-1252 goes through the SASL mechanism PLAIN only: MailKit sends the LOGIN command in UTF-8, whatever encoding it is handed. A username or password the encoding lacks a character of is never sent in it, and Windows-1252 composes a decomposed umlaut first. Nothing changes yet for existing mailboxes; the connection test which finds the encoding follows in the next commit.
…assword Microsoft Exchange expects the username and the password in Windows-1252, while AI Studio always sent UTF-8. A password with an umlaut, ß, §, or € was therefore refused. The connection test, which the user starts, may now try the other encoding once more when the server refused the first one, but only when the username or the password holds a character beyond ASCII. The encoding the server accepted is stored with the mailbox. A refused sign-in on record is cleared once the mailbox is saved with the new encoding. The synchronization, a manual retry, and creating a folder still sign in exactly once, with the stored encoding.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Some German users were not able to login to their exchange server, because their password contained a special character (in this case a german Umlaut), and AI Studio just responded that their password was incorrect. The reason for this is that the password was saved as UTF-8 and the server required Latin.
What I changed:
Related proposal or issue
Bug Report
How did you test it?
Wiki
We need to note that the authentication tries two times, instead of once, in case of a wrong password.
Required statements
Credits (optional)