From owner-freebsd-current@FreeBSD.ORG Sun Oct 5 18:35:34 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 1C465A9D for ; Sun, 5 Oct 2014 18:35:34 +0000 (UTC) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D3089A1C for ; Sun, 5 Oct 2014 18:35:33 +0000 (UTC) Received: from [89.204.155.176] (helo=unixarea.DDR.dd) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1XaqeS-0001TD-1E for freebsd-current@freebsd.org; Sun, 05 Oct 2014 20:35:24 +0200 Date: Sun, 5 Oct 2014 20:35:18 +0200 From: Matthias Apitz To: freebsd-current@freebsd.org Subject: Re: printing text file with LPD - non-printable characters Message-ID: <20141005183517.GA1073@unixarea.DDR.dd> Reply-To: freebsd-questions@freebsd.org Mail-Followup-To: freebsd-questions@freebsd.org, freebsd-current@freebsd.org References: <1412530903064-5954561.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1412530903064-5954561.post@n5.nabble.com> X-Operating-System: FreeBSD 11.0-CURRENT r269739 (i386) User-Agent: Mutt/1.5.23 (2014-03-12) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.155.176 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: Sun, 05 Oct 2014 18:35:34 -0000 El día Sunday, October 05, 2014 a las 10:41:43AM -0700, Beeblebrox escribió: > I have two LPD errors > 1. I see two characters being replaced by strings on the hard copy (the {â} > below is an {a^}). This happens on the first page and not on following > pages. > instead of " I get: â\200\234 (235 for trailing ") > instead of ' I get: â\200\231 > 2. All non-english characters get garbled, on all pages. These are > characters like ç, ö, etc. > > With these two seemingly separate errors, I can't figure out whether this is > an lpr or enscript error. First of all check, what encoding has your text file, UTF-8 or ISO or ...? Then run the file through the filter $ /usr/local/bin/enscript -o - < file > out and check the resulting file 'out'. I do not know enscript, but guess that it should produce Postscript from your input file. I moved the thread by setting Reply-To: to the normal freebsd-question@ list; matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: E-mail: guru@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards | en.wikipedia.org/wiki/ASCII_Ribbon_Campaign