I use this for language
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
Sometimes, i need input some special letter, for example Ö. The language setting worked fine before, but today it report error always when I input some special letter.(I do not remember what i changed to the latex code, seems no changes about language setting).
Below are snapshots for two errors. What is the problem?

inputencapproach covers only a number of chars that have been set up: it can't easily do every UTF-8 char. Which ones are giving you problems (Öfor example should be fine). – Joseph Wright Aug 21 '14 at 09:23inputencwith XeTeX: I guess you've worked that out. – Joseph Wright Aug 21 '14 at 13:01inputencwith XeTeX: I guess you've worked that out. – Joseph Wright Aug 21 '14 at 13:01inputencwith xelatex (and it is not needed as xelatex uses utf-8 in anycase) – David Carlisle Aug 21 '14 at 13:09