Although TeX can read all Unicode characters with inputenc, it does not know what to do with most of them, except those in the normal ascii range. I also had a problem with this when I wanted to copy some text in unicode verbatim into one of my TeX documents, and that text contained characters such as alpha or other mathematical characters.
The solution is a command \DeclareUnicodeCharacter{#1}{#2}where #1you need to place the Unicode character value in the #2expression tex, which is inserted when the character code is encountered #1. For instance. you can use for beta \DeclareUnicodeCharacter{03B2}{\ensuremath{\beta}}because 03B2 is the Unicode character for the beta character (you need to see these things in the Unicode table).
tex , . github https://github.com/ezander/utf8math. . : https://github.com/ezander/utf8math/blob/master/utf8math.sty