Problem sorted out---and it had nothing to do with Lyx. It was my fault entirily---I had two files with almost identical filenames and different encodings.
Sorry for the noise. S. On Tue, Jan 7, 2014 at 3:32 PM, stefano franchi <stefano.fran...@gmail.com>wrote: > I am completely baffled by the following Lyx-->Latex export behavior: > > 1. Lyx file (v. 2.0.6) is set to UTF-8(XeteX) > 2. file -i myfile.lyx confirm the file is encoded as UTF8 > 3. Export to Latex(LuaTeX) produces myfile.tex > 4. file -i myfile.tex tells me it is now encoded as iso-8859-1 > 5. lualatex (from command line) seems to agree, since it chokes on the > first accented character of the file. > > HOWEVER--- > > if I try to make a minimal working example by cutting most of the file's > text, the behavior disappears and the latex export reverts to normal UTF8. > > Is it possible that a character somewhere in the text (which is long---it > is a book) makes lyx switch from UTF8 to ISO-8859-1? > Is there a way to force LyX to export to UTF-8? > > Thx, > > Stefano > > -- > __________________________________________________ > Stefano Franchi > Associate Research Professor > Department of Hispanic Studies Ph: +1 (979) 845-2125 > Texas A&M University Fax: +1 (979) 845-6421 > College Station, Texas, USA > > stef...@tamu.edu > http://stefano.cleinias.org > -- __________________________________________________ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas A&M University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org