I have an UTF-8, polish text in .tex file. When I open it with my LEd (LaTeX editor), it shows ok (all characters can be seen). But when I try to compile it, I get error:
Package inputenc Error: Keyboard character used is undefined
(inputenc) in inputencoding `utf8'.
I have to copy the text, cut it and paste to Notepad++, change (not convert!) encoding from UTF8 to ANSI (the polish characters will be missed and replaces with some random characters). Than copy it again and paste to LEd (in that editor, characters display bad also). But now I can compile my pdf and in it, the encoding is right again.
Is there a way to set encoding in the way I will see characters in LEd propertly and I will be able to compile it and I will get good characters in pdf?
The begging of my code:
\documentclass[12pt]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{txfonts}