[Tex/LaTex] Changing main language to Danish – Babel not working

babellanguagestexstudio

I use TexStudio as my editor, and I'm having problems with changing the language to Danish, so I can use the letters 'æ', 'ø', and 'å'. My document also contains an abstract in English, so I wrote the following in my preamble:

\usepackage[utf8]{inputenc}
\usepackage[english, danish]{babel}

However it seems to have no effect. I've tried deleting the .aux file and recompiling/saving and building the document again with no change.

EDIT: I get the following error:

Error: Could not start the command: pdflatex.exe -synctex=1 -interaction=nonstopmode "pleasework".tex

Best Answer

Works perfectly fine for me (in TeXnic-Center).

\documentclass[11pt]{article}
\usepackage[T1]{fontenc} %thanks's daleif
\usepackage[utf8]{inputenc}
\usepackage[english, danish]{babel}

\begin{document}

Let's try some danish stuff: æ, ø, å

\end{document}

enter image description here

One thing you have to pay attention to is that not only the inputenc must be set to utf8, but also your .tex-file must be saved in UTF8 encoding, not e.g. ASCII. You should be able to choose the file encoding somewhere under save as probably, although I can really hardly believe that any halfway modern editor is using another encoding by default. Do you get any additional errors, or are the symbols just not printed?