Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Printing British Pound

Posted on 2003-10-31
4
Medium Priority
?
1,379 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 1000 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 1000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

609 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