Solved

Printing British Pound

Posted on 2003-10-31
4
1,361 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
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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Suggested Solutions

Title # Comments Views Activity
Linux :how to provide sudo access to the user 13 114
Skill Development 15 190
What are recommended OS for exim mail server? 10 119
Install MySQL 5.6 and PHP on Centos Linux 6 155
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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.

713 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