LaTeX forum ⇒ Fonts & Character Setstext line contains an invalid character

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Posts: 1
Joined: Thu Mar 25, 2010 2:13 pm

text line contains an invalid character

Postby siljemoh » Thu Mar 25, 2010 2:39 pm


My project suddenly stopped to compile and I have no idea why. It has started to complain about a fatal error that says:

--> text line contains an invalid character.
1.3 ......

I have divided my project into several chapters and removed them all from the main project file, but the same error stopped the document from compiling (even though it should only show the front page). Somebody please help me!


User avatar
Stefan Kottwitz
Site Admin
Posts: 9504
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Thu Mar 25, 2010 3:24 pm

Hi Silje,

welcome to the board!
Perhaps post your main document here without the chapters, because there's no content but the error could be reproduced possibly. Or reduce it to a minimal working example for the forum readers.

Posting your .log file would give even even more information. You can post attachments here in the forum.

Site admin

Posts: 2
Joined: Fri May 25, 2012 2:39 pm

Postby Jorgen » Fri May 25, 2012 3:02 pm

(5.47 KiB) Downloaded 206 times

I have the exact same problem as Silje. My solution has been to copy/paste the content of the document to a new document. The new document does not report any fatal error upon compilation.

This is in the log file:

"! Text line contains an invalid character.
A funny symbol that I can't read has just been input.
Continue, and I'll forget that it ever happened."

I added the main document as attachment.

Thanks for any help!

Posts: 1
Joined: Fri Nov 09, 2018 10:41 pm

Postby Cervejinha88 » Fri Nov 09, 2018 10:49 pm

Hey there,
I have exactly the same problem. Unfortunately my chapters are kinda long, and while trying to bit by bit copying them into one running file, it somehow stopped compiling completely again. But... really, this can not be the solution to this. I am going mad, I have to submit my thesis and am not able to compile all chapters...
I am runing sharelatex, and the log file is kinda endless... but i will come up with a minimal example.
I have to get this running soon :cry:

Return to “Fonts & Character Sets”

Who is online

Users browsing this forum: No registered users and 1 guest