I have two issues that seem related. When copying text or filenames containing umlauts or e.g. å ä ö, OS X can't seem to handle the characters in a sane way. Apparently this is a well-known problem. For example:
- http://support.wandisco.com/index.php?/Knowledgebase/Article/View/401/55/problems-with-umlauts--in-filenames-on-mac-os-x
- https://tex.stackexchange.com/questions/94418/os-x-umlauts-in-utf8-nfd-yield-package-inputenc-error-unicode-char-u8-not
Here is an example of the usual result when copying text from a filename or from inside a pdf in Preview and pasting it in an editor. The first line is the result, the other one is corrected.
The difference is clearly visible, since the current font (Courier Prime) doesn't support the first version.
Is there any way to fix this? Alternatively, is there any OS X-service available to "clean up" text or normalize it in the correct way?