I have simple code, which have strange behavior. When I compile this code by command lualatex test.tex or xelatex test.tex and look into the generated pdf file, the glyphs with accents are two symbols in reality.
\documentclass{scrbook}
\usepackage{fontspec}
\setmainfont{Cambria}
\begin{document}
Příliš žluťoučký kůň úpěl ďábelské ódy.
\end{document}
As a result, I cannot search copied text properly, between source file with UTF encoding and pdf file. The text is simply not the same. I was hoping that if I was going to use UTF, I would avoid this phenomenon.
I use up to date Miktex distribution together with MS Visual Studio Code as editor with UTF setting.
/Library/Fonts/Microsoft/Cambria.ttf. The font file is said to contain 6974 [!] separate glyphs, including all of the "accented" characters employed in your sample document. – Mico Dec 16 '19 at 17:10