pragmat1c1 · 2022-05-19 12:27
Although I can type text with Germany umlauts, I cannot **paste** text containing umlauts into my Emacs buffers, although I have this as my first line in my org-files:
`# -*- coding: utf-8; -*-`
and followed advice found here:
[https://www.masteringemacs.org/article/working-coding-systems-unicode-emacs](https://www.masteringemacs.org/article/working-coding-systems-unicode-emacs)
A text like this
"Für Rückfragen stehe ich ihnen gerne unter der o.g. Telefonnummer zur Verfügung." becomes what you can see in the attached screenshot.
​
https://preview.redd.it/yjior4vvef091.png?width=679&format=png&auto=webp&s=0b78dfac2b330440be987efaf195d1f688a5b6c3
# Edit
Strange, I can paste capital umlauts like "Ü", but not "ü".
What is even more strange: I can copy the text from the Emacs buffer back into another editor, and the umlauts are shown correctly. So it's just a problem showing the characters correctly in the Emacs buffer. The text info is preserved though.
flexibeast · 2022-05-19 12:45
Just to check: you've already confirmed this issue doesn't occur when pasting text elsewhere (e.g. into a different editor)?
pragmat1c1 · 2022-05-19 12:45
Yes I can confirm the text is pasted correctly in any other editor / word processor.
eli-zaretskii · 2022-05-19 13:12
It sounds like your default font doesn't support the umlauts.
badimtisch · 2022-05-19 17:03
But then typing it into emacs would also not produce an umlaut.
Edit: that an ü is shown as u plus umlaut also means that there is some Unicode normalization going on; usually ü has its own code point but it can also be stored as two (u plus modifier). Maybe the copy source is doing something weird.
pragmat1c1 · 2022-05-19 17:07
It was indeed the fonts. Thank you for the hint.
[deleted] · 2022-05-19 18:48
[deleted]
eli-zaretskii · 2022-05-20 18:43
> But then typing it into emacs would also not produce an umlaut.
Not if you type the character that already has an umlaut, a.k.a. a "precomposed character".
IOW, the OP's issue was with decomposed characters, where the umlaut accent was a separate codepoint.
> that an ü is shown as u plus umlaut also means that there is some Unicode normalization going on
That's exactly the point: Emacs will display character+accent as a single accented glyph, but only if the font supports both the base character and the umlaut.