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). – ferahfeza Feb 19 at 23:17

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.