I have a problem with encoding Polish letters in TeXmaker. What I mean by this is that:
- when I write Polish letters in TeXmaker they are visible as Polish letters: ą, ę, ć and so on
- yet after compilation what I get in dvi or pdf are just question marks
- similarly, if I open tex file written in TeXmaker and containing Polish letters in WinEdt, what I get are question marks as well
- if I produce a file containing polish letters in TeXmaker, close it and re-open in TeXmaker — again question marks
I know there must be some problem with encoding, yet I have no idea how to solve it.
The question has been marked as duplicate, however the original answer which was pointed to me does not concern the problem of Polish signs in TeXmaker and in a source file. Texenthusiast's answer below helped me to solve that problem as well.
Options-->configure texmaker-->Editor-->Editor font encoding-->utf-8PressOkand restart texmaker. Always useunicode. may be see if this is relevant http://www.xm1math.net/texmaker/download.html "Installing the ibus-qt package is recommended to avoid some trouble with accentued characters on some linux distributions (for Qt4 versions only)". Finally Now start typing polish and save and runpdflatexto verify pdf file. – texenthusiast Feb 21 '14 at 20:21\usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}to the preamble for compiling the.texfile with unicode characters. – texenthusiast Feb 21 '14 at 20:50\usepackage[utf8]{inputenc}in the preamble, then I get very strange looking symbols for polish letters. Without it I get the following error for every polish letter:! Package inputenc Error: Unicode char \u8:ś not set up for use with LaTeX.However, when I re-open file, I still can see polish letters in the file. – Rafał Gruszczyński Feb 21 '14 at 21:28%&platex --translate-file=cp1250plplaced before\begin{document}(I use MikTeX). After I have deleted it, everything works fine. Thanks! – Rafał Gruszczyński Feb 21 '14 at 21:31