Every time I try to compile and run my Latex document I get the following error:

! Package inputenc Error: Unicode character ʹ (U+2B9)(inputenc) not set up for use with LaTeX.See the inputenc package documentation for explanation.

even though I have nothing written on the line that the error is appearing on. Does anyone know how to remove this error?


Below I've included my preamble and an empty document which when I compile still gives that message.












  • Please add your MWE (Minimal Working Example).
    – user31034
    Commented Feb 19, 2019 at 23:17

2 Answers 2


Unicode 2b9 is "modifier letter prime", which looks almost like an apostrophe. Most likely, you copy and pasted your text from something that was "helpfully" making smart quotes for you. Find the smart apostrophe and replace it with a regular apostrophe.

If your posted example is truly your tex file, then the problem is in one of your supplementary files. Delete the auxiliary files and compile again, and look through your bibliography for a smart quote that snuck in when you copied the reference from the internet.


I ran into this problem when I had a reference with an author whose last name included this symbol. I decided to cope with the error by putting the following in my preamble:


Perhaps someone more familiar with Russian last names than I am could comment if a different substitute character would be more appropriate.

  • For the Math Reviews transliteration of cyrillic names, this definition has been used: \def\cprime{\/{\mathsurround=0pt$'$}}. This produces an actual prime, not an apostrophe. Commented Mar 26, 2020 at 20:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .