From owner-freebsd-current@FreeBSD.ORG Tue Oct 14 08:19:49 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 10B82DA0 for ; Tue, 14 Oct 2014 08:19:49 +0000 (UTC) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E6C12935 for ; Tue, 14 Oct 2014 08:19:48 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1XdxKY-0004Dc-B3 for freebsd-current@freebsd.org; Tue, 14 Oct 2014 01:19:42 -0700 Date: Tue, 14 Oct 2014 01:19:42 -0700 (PDT) From: Beeblebrox To: freebsd-current@freebsd.org 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> Subject: Re: printing text file with LPD - non-printable characters MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2014 08:19:49 -0000 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 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.