[Tex/LaTex] Problem with Unicode in LaTeX editor (LEd)

input-encodingslanguagesunicode

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}

Best Answer

At http://www.latexeditor.org/news.html, a news post dated October 2009 reads:

Currently we are working on:

  • [...]
  • adding support for Unicode and UTF-7, UTF-8, UTF-16, UTF-32 encodings,
  • [...]

So support for Unicode reportedly is in the works.

However, the last release of LEd dates back to as far as October 2009; that's more than four years ago, at the time of writing this answer. According to the same page, previous releases of LEd used to take place at much shorter intervals, on an annual/biannual basis.

It's fair to assume that maintenance of the editor has stopped. In all likelihood, LEd is now in the doldrums. As suggested by egreg and Joseph Wright in their comments, it may be time for you to switch to a TeX editor that offers Unicode support. See LaTeX Editors/IDEs to guide your decision.