I recently had an issue where some files with accents were showing, but not all of them. If none of them were showing, I might have assumed an encoding issue, but it’s clear something else was at play here. This was pretty annoying when I wanted to play a specific song.
I needed to attempt a notarization of a Mac app (currently still in the middle of that long story), but I wasn’t using Xcode, so I had to run tools manually. Unfortunately, I couldn’t use xcrun altool, as it couldn’t find the command. I had upgraded the version of Xcode I was using, so I guess I had some stale links somewhere. Running xcode-select -r did the trick and fixed it.
When I tried to add an Exchange account (but it seemed to affect IMAP accounts too) in macOS (I was running High Sierra, but it affects other versions too), from either the Internet Accounts preference pane or Mail.app, it would let would let me add an account right until the final step where it asks what kind of services you want enabled on the account, then the Done/Next button just does nothing. You might get a throbber for a second, but it subsides and does nothing.
There’s a lot of somewhat convulted steps posted on the internet, but the simplest is to just reset your keychain from the Keychain Access application (Application Menu->Preferences, it’s one of the options there) and reboot. You’ll have to enter your passwords again (including iCloud), but I had no trouble adding mail accounts after that.