Andre Poenitz schrieb:
http://bugzilla.lyx.org/show_bug.cgi?id=4299
Well, the problem here, is of course, that the .tex file does not contain any
hint what kind of encoding the file contents has.
I don't think so. LaTeX has to be informed about the encoding a file has, the same as we have to
know the encoding. Therefore the encoding has to be specified by the option of the inputenc package.
So we are safe when we do the same.
So my proposal is to look at the inputenc option. When no option is given or there is no inputenc
package, we use plain ASCII as also LaTeX would do this. When e.g. the option is "cp1255", we use
iconv to convert the file content from cp1255 to utf8 and then we can import the result as it is as
we use for the resulting LyX file also utf8.
What do you think?
regards Uwe