How can I have known current font encoding? I know that a list of font encodings is saved in
\cdp@list macro. Last element of \cdp@list is usually the effective encoding but this is not always true; for example, \setlanguage might switch current encoding.
Actually, I want to distinguish the case where either EU1 or EU2 font encoding is in effect from a non-unicode encoding.

fontspecisTU. – egreg Nov 03 '20 at 09:21