[texhax] package inputenc error: invalid UTF-8 byte 146

Ulrike Fischer news3 at nililand.de
Thu Jun 14 17:03:09 CEST 2018

Am Thu, 14 Jun 2018 10:22:53 -0400 schrieb Ron RJF Fehd:

> I am updating a paper I wrote a couple of years ago
> and find that TeXLive 2018 is giving me this strange error.
> ! Package inputenc Error: Invalid UTF-8 byte 146.
> See the inputenc package documentation for explanation.
> ​I have searched my installation but have not found
> the inputenc package

You certainly have inputenc. It is a required part of texlive. 

> ​I use UltraEdit as my text editor
> and have made sure the encoding is
> 1252  (ANSI - Latin I)​
> ​Where else shall I look to address this error?

Starting with texlive 2018 the latex formats loads the inputenc code
already in the kernel and sets utf8 as default encoding. 

If your files are not utf8 encoded and you are not loading inputenc
yourself you could get such an error. 

Either load \usepackage[ansinew]{inputenc} or
try \UseRawInputEncoding before \documentclass. See also the
relevant part in the latex news:


Ulrike Fischer 

More information about the texhax mailing list