Printing extended ASCII


 
Thread Tools Search this Thread
Operating Systems AIX Printing extended ASCII
# 1  
Old 05-18-2011
Printing extended ASCII

Hi All,

I'm trying to send extended ascii characters to my HP2055 as part of PCL printer control codes. What I want to do is select a bar code font, print the bar code and reset the printer to the default font.

Selecting the bar code font works good. Printing the bar code goes almost ok too.

Problem is printing the correct start and stop sequence with AIX. These start and stop sequence are extende ascii values (162 and 164) and these will not print with AIX.

The barcode I'm trying to print is

Code:
^[(2Y^[(s0p8.33h85v0s0b0T¢ABCDEFGHJIK¤



Where the characters in red are not prining correctly.

When I send the same stream from a windows system, the correct bar code (including the correct start and stop characters) are printed. This leads me to conclude that the problem might be AIX bound.


Anyone struggled with the samen problem?

--Peter
# 2  
Old 05-18-2011
Check what do you get with :

Code:
printf "\162\n"
printf "\164\n"
printf "\302\242\n"
printf "\302\244\n"

# 3  
Old 05-18-2011
I did the following:
Code:
$ printf "\162\n"> ascii
$ printf "\164\n" >> ascii
$ printf "\302\244\n" >> ascii
$ printf "\302\242\n">> ascii

When I cat ascii I see:
r
t
¤
¢

When I print ascii (lp ascii) I see
r
t
╢╧
╢╜
# 4  
Old 05-18-2011
Is your printer declared on a print server ?
If yes, which OS run the print server ?
Or is your printer a network printer ?
If yes, did you install your printer with the relevant (HP2055) PCL driver/model filter (from which OS?) ?

http://www8.hp.com/us/en/support-drivers.html

http://h20000.www2.hp.com/bizsupport...vOID=2093#1130

Find the relevant model script
http://www.hp.com/pond/modelscripts/index2.html

Last edited by ctsgnb; 05-18-2011 at 06:40 AM..
# 5  
Old 05-18-2011
It is a HP2055 on a hpjetdirect.
It is created as a hpjetdirect: other: generic: ascii queue.
It is created on AIX 5.3.
# 6  
Old 05-18-2011
So this printer is a network printer ?

If yes, then i think you may have recreate it properly on the server from which you are trying to print.

Is there any way to specify the model script to use for that printer in smitty ?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Print byte position of extended ascii character

Hello, I am on AIX. When I encounter extended ascii characters and special characters on a file I need to print.. Byte position, actual character and line number. Is there a simple command that can give me the above result ? Thanks in advance (38 Replies)
Discussion started by: rosebud123
38 Replies

2. Shell Programming and Scripting

Extended ASCII Characters keep on getting reintroduced to text files

I am working with a log file that I am trying to clean up by removing non-English ASCII characters. I am using Bash via Cygwin on Windows. Before I start I set: export LC_ALL=C I clean it up by removing all non-English ASCII characters with the following command; grep -v $''... (4 Replies)
Discussion started by: lewk
4 Replies

3. Shell Programming and Scripting

Removal Extended ASCII using awk

Hi All, I am trying to remove (SELECTIVE - passed as argument) Extended ASCII using Awk based on adhoc basis. Can you please let me know how to do it. I have to implement this using awk only. Thanks & Regads (14 Replies)
Discussion started by: tostay2003
14 Replies

4. Programming

How to read extended ASCII characters from stdin?

Hi, I want to read extended ASCII characters from keyboard using c language on unix/linux. How to read extended characters from keyboard or by copy-paste in terminal irrespective of locale set in the system. I want to read the input characters from keyboard, store it in an array or some local... (3 Replies)
Discussion started by: sanzee007
3 Replies

5. Shell Programming and Scripting

Search and Replace Extended Ascii Characters

We are getting extended Ascii characters in the input file and my requirement is to search and replace them with a space. I am using the following command LANG=C sed -e 's// /g' It is doing a good job, but in some cases it is replacing the extended characters with two spaces. So my input... (12 Replies)
Discussion started by: ysvsr1
12 Replies

6. Shell Programming and Scripting

Identify extended ascii characters in a file

Hi, Is there a way to identify the lines in a file having extended ascii characters and display the same? For instance I have a file abc.txt having below data aaa|bbb|111|This is first line aaa|bbb|222|This is secõnd line aaa|bbb|333|This is third line aaa|bbb|444|This is foùrth line... (3 Replies)
Discussion started by: decci_7
3 Replies

7. UNIX for Advanced & Expert Users

Processing extended ascii character file names in UNIX (BASH scipts)

Hi, I have a accentuated letter (ö) in a script for an Installer. It's a file name. This is not working and I'm told to try using the octal value for the extended ascii character. Does anyone no how to do this? If I had the word "filförval", can I just put in the value between the letters, like... (9 Replies)
Discussion started by: peli
9 Replies

8. Shell Programming and Scripting

extended ascii problem

hi i would like to check text files if they contain extended ascii characters within or not. i really dont have any idea how to start your kind help would be very much appreciated thanks. (7 Replies)
Discussion started by: smooth
7 Replies

9. Programming

Extended ascii

Hi all, I would like to change the extended ascii code ( 128 - 255). I tried to change LC_ALL and LANG in current session ( values from locale -a) and for no good. Thanks. (0 Replies)
Discussion started by: avis
0 Replies
Login or Register to Ask a Question