Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

% Encoding Comment wrongly dropped #8417

Closed
2 tasks done
universal opened this issue Jan 12, 2022 · 3 comments · Fixed by #8424
Closed
2 tasks done

% Encoding Comment wrongly dropped #8417

universal opened this issue Jan 12, 2022 · 3 comments · Fixed by #8424

Comments

@universal
Copy link

universal commented Jan 12, 2022

JabRef version

5.4 (latest release)

Operating system

GNU / Linux

Details on version and operating system

Pop!_OS 21.10 (Ubuntu)

Checked with the latest development build

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

  1. Save the following file with encoding windows-1252:
% Encoding: windows-1252

@MISC{anderson04a,
  author = {Robert Anderson},
  title = {Quality of Life in Rural {Europe}},
  howpublished = {Paper presented at the Irish Presidency Conference `Improving Living
  Conditions and Quality of Life in Rural {Europe}', Westport},
  month = {May 30 -- June 1},
  year = {2004},
  file = {anderson04a.pdf:anderson04a.pdf:PDF},
  institution = {{European Foundation for the Improvement of Living and Working Conditions
  (OECD)}},
  timestamp = {2009.10.09}
}

@Comment{jabref-meta: databaseType:bibtex;}
  1. Open file in Jabref, Verify Library Properties say: Encoding windows-1252
  2. Hit Save
  3. The library has been modified by another program. pops up, dismissing changes does not help. File is saved without the encoding comment though and it does not get restored. Library now says UTF-8 in properties.
  4. Autosave of local libraries is off.
  5. encguess trial.bib says US-ASCII (saved with sublime text and vs code)
@Siedlerchr
Copy link
Member

@koppor encoding

@Siedlerchr
Copy link
Member

JabRef tries to write and store all data in utf8
The encoding comment was removed in 5.4

In case the database is encoded with UTF8, the % Encoding marker is not written anymore

@koppor
Copy link
Member

koppor commented Jan 12, 2022

It should keep the encoding field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants