I've built an App for MacOS which sometimes needs to open websites in the Browser. But some URLs contain umlauts (ä, ö, ü, ß) which aren't supported by NSWorkspace.shared.open((URL(string: url)!)) and end in an application crash because it unexpectedly found nil while unwrapping.
A little bit more about the App: A direct and working link is stored in the string "url" and after Pressing a Button it executes the command above. I already tested if "url" has the correct content and tried it with and without umlauts.
Any solution?