On Wed, Mar 27, 2013 at 4:56 PM, Georg Baum <[email protected]> wrote: > Guenter Milde wrote: > >> On 2013-03-26, Scott Kostyshak wrote: >>> On Tue, Mar 26, 2013 at 6:57 AM, Jean-Marc Lasgouttes >>><[email protected]> wrote: >>>> 26/03/2013 11:54, Guenter Milde: >> >>>>>> Can we use iconv to convert the verbatiminput file to the correct >>>>>> encoding when we copy it to the temporary directory? Or would that be >>>>>> too complicated for this minor issue? >> >>>>> The problem is that we do not know the encoding of the to-be-included >>>>> file. >>>>> (Of course we know it in this special case, but not generally.) >> >>>> Yes, it is the same problem as bibliography. >> >>> Why can't LyX ask for the file encoding of a given file? > > It can, it is just not implemented. There is some discussion in trac for the > encoding of bibtex or included files (could not find it right now, or was it > on the list?). The basic idea there was to provide a combo box in the inset > dialog, which offers all known encoding + an auto setting, which would guess > the encoding from the contents. Then, if the encoding of the file is known > (either because the user told it, or because it was guessed), LyX could > convert it to the needed encoding.
This sounds good, especially since it sounds like it would help out in a few different scenarios. I found the ticket: http://www.lyx.org/trac/ticket/6223 I will link to this discussion there to show that there would be other benefits of implementing a solution. Thanks, Scott
