pandoc: Error running filter pandoc-citeproc

I was try­ing to con­vert a paper with a bib­li­og­ra­phy from .tex to .odt (see here) using the fol­low­ing com­mand:

pandoc --filter pandoc-citeproc -csl=harvard-kings-college-london.csl --bibliography="/path/toward/my/database/bib/my_bibliography.bib" --biblatex --latex-engine=xelatex article.tex -o article.odt

when pan­doc sent me the fol­low­ing error mes­sage:

pandoc-citeproc: "stdin" (line 1602, column 2):
unexpected "B"
expecting "c", "C", "p", "P", "s" or "S"
CallStack (from HasCallStack):
error, called at src/Text/CSL/Input/Bibtex.hs:111:32 in pandoc-citeproc-0.10.2.2-3RrXjh6aiqI9DyqmDuv1Xw:Text.CSL.Input.Bibtex
pandoc: Error running filter pandoc-citeproc
Filter returned error status 1

The con­ver­sion was done, but with­out the bib­li­o­graph­ic ref­er­ences.

A diag­no­sis for this type of prob­lem found here (I don’t know what this site exact­ly is, but it put me on the right track) allowed me to iden­ti­fy the prob­lem and fix it.

Line 1602 in the pan­doc error mes­sage referred to the BibLa­TeX data­base my_bibliography.bib. The entry that start­ed on line 1602 of this file looked like this:

@Book{auteur17:_titre_livre,
author = {Nom, Prénom},
title = {Le titre du livre},
year = 2017,
publisher = {Le nom de l'éditeur},
location = {Ville d'Édition},^S
pagetotal = 160}

The ^S (which looks like a con­trol char­ac­ter) at the end of the loca­tion line had noth­ing to do there. Its sup­pres­sion put things back in order.

Ce contenu a été publié dans Informatique, logiciels libres, avec comme mot(s)-clé(s) , . Vous pouvez le mettre en favoris avec ce permalien.