I have a problem with some of the UTF-8 characters that are in my Tex file. Although I am saving the file in UTF-8 and my text editor (Atom) is displaying all of the characters properly, LaTeX throws errors like these:
[no file]:824: Package inputenc Error: Unicode character Δ (U+394) [...tes $(x,y)$ are $x=x_0+Δx$ and $y=y_0+Δ] [no file]:857: Package inputenc Error: Invalid UTF-8 byte sequence. [ # calculate ω] [no file]:857: Package inputenc Error: Invalid UTF-8 byte 137. [ # calculate ω] [no file]:889: Package inputenc Error: Unicode character θ (U+3B8) [...ce $r$. It was previously at an angle $θ] [no file]:889: Package inputenc Error: Unicode character ω (U+3C9) [...ngle $θ$ and is now at an angle $θ + ω] [no file]:976: Package inputenc Error: Invalid UTF-8 byte sequence. [ # calculate ω] I have tried using utf (and utfx) package to no avail:
\usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} Here is the entirety of the file: https://pastebin.com/dzzLtUmB.
The formatting might be a little rough on the eyes, because it's generated.
Is there something I could do to fix this?
inputenconly a limited subset of UTF-8 characters is set up for use (e.g. Latin-1 characters and other accented stuff). You'll have to add declarations for the one your are missing. See for example tex.stackexchange.com/q/429029/35864 or better tex.stackexchange.com/q/34604/35864, tex.stackexchange.com/q/83440/35864, tex.stackexchange.com/q/110042/35864 and tex.stackexchange.com/q/356958/35864Invalid UTF-8 byte sequence.andInvalid UTF-8 byte 137.errors don't sound good and probably need looking at.