On 17/02/2023 00:46, Greg Marks wrote:
When trying to print a file that contains emojis with the lpr
command, not only do the emojis not print, nothing following the first
non-printing emoji prints. (This makes it a hassle to print certain
e-mails piped to lpr using mutt.) As a small example, after entering
the command:
echo -e "Hello\n\0360\0237\0230\0212\nGoodbye" > /tmp/test.txt && cat /tmp/test.txt
&& lpr /tmp/test.txt
only the first of the three lines prints.
I find it highely unlikely that the printer understands UTF-8, let alone
that its built-in fonts contains emoji. Maybe it supports the whole
ISO-8859-1 character set, but probably only ASCII.
It might be trying to interpret the non-ASCII codes as control
sequences, or it just doesn't know what to do with them.
Does anyone have a good way of printing text that contains emojis?
You can convert it to PDF. Or open the file in word processor and print
from there. Even if it's just plain text, it'll be converted to a format
that the printer understands, including extra fonts.
--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br