I've experimented a bit and found out that:

- listings package generally has problems with UTF-8 encoding, even
without Lyx, but there's a workaround - UTF-8 works inside a Latex
escape block, so if I set inputencoding=utf8 and escapechar=| and then
write comments |like this|, there are no errors

- that trick doesn't work in listing captions, but if I change the
line \inputencoding{latin1} just before \begin{lstlisting} to
\inputencoding{utf8}, it starts working. The problem is, Lyx generates
listing blocks with \inputencoding{latin1} and I don't think I can
change that... (in Document->Settings->Language I've set: Language =
Polish, Use language's default encoding = no, Encoding = utf8... So
why latin1?)

The latin1 suggestion is given by Herbert. I have forwarded this email to him.

Cheers,
Bo

Reply via email to