Using umlauts with listing package in LaTeX

Umlauts (and other special characters) sometimes do not work out of the box when applying the listing package.

Here is a code snippet for mapping umlauts to their “raw” encodings:

I found this snippet alongside many more for other languages in a stackoverflow post.

Leave a Reply

Your email address will not be published. Required fields are marked *

Please type the characters of this captcha image in the input box

Please type the characters of this captcha image in the input box