Can modern terminals correctly display all utf-8 characters?

I am writing a C application that will run in the terminal, and it would be convenient, but not necessary, to use some of the less used Unicode characters. From my experiments, I had no problems with their implementation. However, I would not use any characters without ascii if this were a likely source of problems in the future.

So, in short, can I count on some terminal or terminal emulator in the modern * nix world (mainly linux, freebsd and osx) to correctly display arbitrary utf-8 characters?

If I cannot make such an assumption, are there certain subsets of Unicode characters defined for various purposes, so does any such subset at least reliably display in any likely modern terminal or terminal emulator?

NOTE. When I speak arbitrarily, I mean arbitrary: any Unicode characters. But to complete my question, I note that I am primarily interested in arrows and mathematical symbols, this link has lists of both: https://en.wikipedia.org/wiki/Unicode_symbols .

+4
source share
2 answers

, . , , , , LANG, LC_* .., , .

, , TERM, LANG LC_*, , , . , / ( / ).

+6

, . , . , CJK.

, Unicode . , Unicode.

, , Unicode, , .

+1

Source: https://habr.com/ru/post/1610130/


All Articles