I have TeX-Files created by an external program. These have an partially somewhat "exotic encoding" which is recognized by TS as ISO-8859-1. Whith a personal macro I can change the wrong charcters to UTF-8. This macro also inserts "% !Tex encoding = utf8" at the beginning of the document and a "\usepackage[utf8]{inputenc}". In the configuration of TS I have choosen UTF-8 for the standard encoding.
Until TS 2.8.2 I then could start PDFLATEX whithout problems as the the encoding was correctly detected as changed to UTF-8.
Since TS 2.8.4 (?) the editor still detects the previous ISO-8859-1 after my macro-run and gives various errors. This is only avoidable by manually changing the encoding in the corresponding dialog.
Is this a new wanted feature or is there a new combination of the auto-detection-switches to avoid this behaviour?
Tested on Windows XP with the portable edition.
Might be related to https://sourceforge.net/p/texstudio/bugs/1165/. You can try the most recent development snapshot, which already contains the fix for the above bug.http://sourceforge.net/projects/texstudio/files/texstudio/TeXstudio%20SVN/texstudio2.8.9_snapshot_2014-12-10_win%20_qt5.4.0.exe/download
Additionally, please check your settings for
Config -> Editor -> Automatic Encoding Detection
.If that does not help, please provide an example document, so we can reproduce the behavior and see where it goes wrong.
Last edit: Tim Hoffmann 2015-01-05
copied from https://sourceforge.net/p/texstudio/bugs/1191/
Last edit: Tim Hoffmann 2015-01-05
The behavior seems to have changed because of a new and improved text replacement function for scripts (hg 4726 0789d9cb4066)I don't know if we explicitly support changing the encoding as a side effect of a text replacement. Might be that the old implementation just did this by chance.
Benito, can you please comment on this?Last edit: Tim Hoffmann 2015-02-08
see also [bugs:#1230]
Related
Bugs:
#1230