Enscript does not support UTF-8 formatted text files, so it's not usable in
this case.

One solution, "is to use paps, instead of Enscript, for converting UTF-8
encoded text to PostScript."
http://www.linuxfromscratch.org/blfs/view/svn/pst/enscript.html

Another (which I prefer) solution is to send to printer like this (with "n"
being the 8859 extension number):
$ iconv -f UTF-8 -t ISO-8859-n file-UTF8.txt | enscript --encoding=8859n |
lpr -P<printer>

Thanks to Martin Paredes for this suggestion.

Perhaps this information or the appropriate enscript conversion code for
psif could be included in the Handbook
(https://www.freebsd.org/doc/handbook/printing-lpd.html 10.5.3.4 /
10.5.3.5)?

Regards.



-----
FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS
--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/printing-text-file-with-LPD-non-printable-characters-tp5954561p5956648.html
Sent from the freebsd-current mailing list archive at Nabble.com.
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to