Solved

Printing British Pound

Posted on 2003-10-31
4
1,336 Views
Last Modified: 2013-12-27
Hello,

I am trying to print a British Pound (£) from Solaris 8 to a HPLJ5Si. My printer is defined as follows:

lpadmin –p hp5sics –v /dev/null –m netstandard –o dest=hp5sics:9100 -o protocol=tcp –T unknown –I any
enable hp5sics
accept hp5sics

I have an entry in /etc/hosts for hp5sics and I do get prints out. However, when I try to print an ascii file with a British Pound sign it comes out as a u with an accent over it.

Anyone any ideas what I can try?

Thanks in advance.
0
Comment
Question by:cicssjw
  • 2
  • 2
4 Comments
 
LVL 2

Assisted Solution

by:colsey79
colsey79 earned 250 total points
Comment Utility
Hi there

The problem you are getting is caused by the way the printer is interpreting the £ sign.  To explain this we need to look at the Octal/Decimal values and correlate them to the symbol tables.

In Octal, the £ is 243.  This code maps to Decimal 163 which in Extended ASCII correlates to the u with an accent.

The fact your OS recognises the £ sign as a £ and not anything else would indicate the OS is setup correctly.  What you are going to have to do is to change the symbol set on your printer itself.  If I remember correctly, you should be able to do this within the printer's menu system.  You will need to select a symbol set that contains the pound sign at Octal 243 or Decimal 163.

If you can't change the printer, the only way round this is to create a filter that changes the Octal 243 sent by the OS to Octal 234 (Decimal 156) which correlates to the £ sign in the Extended ASCII table.

Or the worst case scenario is to replace all £ signs in your documents with an escape sequence for the £ sign in Extended ASCII... which does have the side effect of not showing up as a £ in Solaris, but more likely "£"

HTH

0
 

Author Comment

by:cicssjw
Comment Utility
Sorry for the delay in replying, I was on holiday :-). Thanks very much for the information and looks like my problem. I have 300+ printers with this problem and it will be impossible changing each one (if it is possible). Can you let me know how to create a filter to change Octal 243 to Octal 234?

Thanks in advance.
0
 
LVL 2

Accepted Solution

by:
colsey79 earned 250 total points
Comment Utility
You could try a crude little filter by adding this line to /etc/lp/interfaces/<printername>

FILTER="cat - | tr '\243' '\234'"

The other option is to see if you can remotely manipulate the printers.  That later HP printers will accept PJL commands to change settings on a printer remotely.  Check the HP website on how to do this and the necessary commands as these can be printer specific.

HTH


0
 

Author Comment

by:cicssjw
Comment Utility
This works great. Thanks for your time.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now