Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Oct 2014 01:19:42 -0700 (PDT)
From:      Beeblebrox <zaphod@berentweb.com>
To:        freebsd-current@freebsd.org
Subject:   Re: printing text file with LPD - non-printable characters
Message-ID:  <1413274782325-5956648.post@n5.nabble.com>
In-Reply-To: <20141005220221.1ed7df8d@rsbsd.rsb>
References:  <1412530903064-5954561.post@n5.nabble.com> <20141005183517.GA1073@unixarea.DDR.dd> <20141005220221.1ed7df8d@rsbsd.rsb>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1413274782325-5956648.post>