Solved

Printing British Pound

Posted on 2003-10-31
4
1,369 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 2

Assisted Solution

by:colsey79
colsey79 earned 250 total points
ID: 9665484
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
ID: 9816943
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
ID: 9817538
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
ID: 9824585
This works great. Thanks for your time.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

691 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