encoding of tex file
Bug #944134 reported by
Matthis Thorade
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Excel2LaTeX |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
The encoding of the tex files created by excel2latex is ANSI, but if my Excel sheet contains umlauts like äöüß, compilation of my main tex file (which includes the tex files created by excel2latex) fails.
Now I use Notepad++ to convert the encoding from ANSI to UTF8 without BOM manually. Is there a way to automate this or just export to UTF8 right away?
To post a comment you must log in.
Please see the documentation for the inputenc package. You can change the input encoding in the middle of the document using something along
\inputencoding{ latin1}
Of course it would be nice if Excel2LaTeX added the \inputencoding command into the generated file. However, I am not sure how to switch back to the encoding used before. Perhaps the following will work:
{ latin1}
\inputencoding{
...generated TeX file
}
Could you please check if this works? After the closing brace, the input encoding should be switched back to whatever it was before. If it does, I can add this to the generation routine.