jabref icon indicating copy to clipboard operation
jabref copied to clipboard

Regex replace behave differently in entry preview and custom export

Open pedrogit opened this issue 3 years ago • 0 comments

JabRef version

Latest development branch build (please note build date below)

Operating system

Windows

Details on version and operating system

No response

Checked with the latest development build

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

Steps to reproduce the behaviour

  1. Define a "Customized entry preview" like this: "\format[Replace("é,e")]{\author}"
  2. Test it with an entry having "Testé" as author. The preview show "Teste" as expected. The accent is replaced with the non accented character
  3. Create a new "Custom export formats" with the same formating saved in the .layout file: "\format[Replace("é,e")]{\author}"
  4. Export the entry having "Testé" as author. The resulting exported file contains "Testé" as if nothing had happend. I guess accent are converted to some encoding BEFORE being processed by the formating and the replace function can't find them anymore.

Appendix

No response

pedrogit avatar Sep 13 '22 18:09 pedrogit