Printing UTF-8 characters

Matthias Apitz guru at unixarea.de
Thu Feb 1 07:28:39 UTC 2018


El día jueves, febrero 01, 2018 a las 01:15:34a. m. -0500, Farhan Khan escribió:

> Hi everyone,
> 
> Is there a standard way to render historically non-printable UTF-8
> characters that will work across all terminals? I am trying to modify a
> standard FreeBSD utility that may occasionally work with characters in
> other languages. On some terminals, specifically FreeBSD running in
> VirtualBox, I see question-marks rather than the expected character. I
> wonder if this is the proper way to display such non-printable characters
> or no?

Not sure what you mean with 'historically non-printable UTF-8'. UTF-8 is
an encoding form (one of more) to present Unicode Codepoints in bytes. If
you want to "print" them to paper or PDF there are ways to write them
with Postscript and with the correct font-support to bring them into
human readable form. If you want to "display" these UTF-8 bytes you need
a terminal-software with UTF-8 support, for example from the ports x11/rxvt-unicode
and the fonts for the Codepoint areas you want to display.

Btw: Can you display my signature line correctly? There is an UTF-8 encoded
Codepoint for a mobile telephone :-)

	matthias
-- 
Matthias Apitz, ✉ guru at unixarea.de, ⌂ http://www.unixarea.de/  📱 +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub


More information about the freebsd-hackers mailing list