[Tex/LaTex] ! Package inputenc Error: Unicode char fi (U+FB01)

compilation errorinput-encodings

TexStudio underlines in red an excerpt in which there are some double quotation marks, giving the error above.

I use

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

Best Answer

U+FB01 is an fi ligature which should never be in your source file. So best would be to edit the input and replace it by fi but failing that

\DeclareUnicodeCharacter{FB01}{fi}

should work.