\documentclass[a4paper]{article}    

\usepackage[utf8]{inputenc}
\usepackage{t1enc}
\usepackage[magyar]{babel}

\begin{document}    

Some letters with accents: öüóőúéáűí ÖÜÓŐÚÉÁŰÍ

\begin{verbatim}
The same letters with accents: öüóőúéáűí ÖÜÓŐÚÉÁŰÍ
\end{verbatim}

\verb|The same letters with accents, again: öüóőúéáűí ÖÜÓŐÚÉÁŰÍ|

\end{document}
