https://bugs.kde.org/show_bug.cgi?id=426856

neurosh...@hotmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |neurosh...@hotmail.com
         Resolution|FIXED                       |---
             Status|RESOLVED                    |REOPENED

--- Comment #6 from neurosh...@hotmail.com ---
I'm still seeing the same problem. I'm using KBibTeX 0.10.0 on Fedora Linux 38.

When I save a .bib file in KBibTeX with "Encoding: LaTeX" in File Settings, and
then I close and reopen the .bib file in KBibTeX, it forgets that the encoding,
and replaces it with UTF-8.

If I open the .bib file in a text editor, here's what I see:

-> On saving the .bib file with "Encoding: LaTeX" in file settings, and opening
it up in a text editor, I can see that special characters are correctly written
in LaTeX format. (ö becomes {\"o}, etc.). However, the first line of the .bib
file is @comment{x-kbibtex-encoding=utf-8}. And if I close and reopen the .bib
file in KBibTeX, it incorrectly identifies the encoding in File Settings as
UTF-8. So if I save again in KBibTeX, the .bib file goes back to the wrong
encoding. ({\"o} goes back to ö, etc.)

-> If I manually choose "Encoding: LaTeX" in KBibTeX and save again, and then
open the .bib file in a text editor, and manually change the first line from
@comment{x-kbibtex-encoding=utf-8} to @comment{x-kbibtex-encoding=latex}, and
then re-open the .bib file in KBibTeX, it correctly identifies the encoding as
LaTeX in File Settings.

-> But, when I save the .bib file in KBibTeX, that first line of the .bib file
goes back to @comment{x-kbibtex-encoding=utf-8}, and the whole process repeats.

-> What this means is that every time I save my .bib file in KBibTeX, I have to
manually choose "Encoding: LaTeX" each time. If I forget, then KBibTeX saves
the file as UTF-8.

The solution would be for KBibTeX to make that first line
@comment{x-kbibtex-encoding=latex} automatically if I've selected "Encoding:
LaTeX" in File Settings.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to