# File Encoding and Input Encoding

In order to avoid cluttering other related questions, I separately make this question.

If I use Notepad as my editor, there are 4 encoding options available when saving the TeX input file: ANSI, Unicode, Unicode big endian, and UTF-8.

I want to know which input encoding do I have to use for each file encoding mentioned above.

For example, when I choose Unicode as the file encoding, which input encoding do I have to choose?

-
IIRC, Notepad means "UTF16" when saying Unicode. So if you want to use non-ASCII characters without escaping them, you should use UTF8 to save the file and use `utf8` or `utf8x` as option to `inputenc` unless you use lualatex/xelatex as pointed out by Boris. Of course you should consider to use a proper editor or TeX IDE rather than Notepad. –  Christian Apr 28 '12 at 14:56
Notepad++ is a nice candidate. It has a lot of handy features. –  percusse Sep 24 '12 at 1:51

I assume you are using `pdflatex`: both `xelatex` and `lualatex` understand Unicode.
If you have non-ascii characters, your best bet is UTF-8 file with `\usepackage[utf8]{inputenc}`. Otherwise choose ANSI and do not use `inputenc`.