Re: printing text file with LPD - non-printable characters

From: Matthias Apitz <guru_at_unixarea.de>
Date: Sun, 5 Oct 2014 20:35:18 +0200
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_at_
list;

	matthias
-- 
Matthias Apitz               |  /"\   ASCII Ribbon Campaign:
E-mail: guru_at_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
Received on Sun Oct 05 2014 - 16:35:34 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:52 UTC