Hi,
I’m currently wondering why my bibfile (if opened in editor or notepad++) leaves the first line “% Encoding: UTF-8” out and just starts with listing the contents?
Under Library → Library properties → General → Library encoding I use UTF-8.
But if I adjust to UTF-16, the bib file said “% Encoding: UTF-16” in the first line.
I’ll need this first line of “% Encoding: UTF-8” when using my bib file in other programs and I wonder, what I’m doing wrong.
Many thanks already!
PS.: I know I could just add this line manually but I’d just like to know if there’s a simple reason for my problem which I could easily avoid.
JabRef always tries to read and autodetect the used encoding and save the file with UTF-8 by default. The encoding line is only written when you specify a different encoding than UTF-8.
This was a change in recent versions
In the year 2018, pdflatex decided to switch the default input encoding to UTF-8 (see https://tug.org/TUGboat/tb39-1/tb121ltnews28.pdf). Thus, it is not necessary to explicitly define any input encoding (inputenc).