Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

output underlines; unidentifiable square character

Status
Not open for further replies.

McCue

Programmer
May 21, 2001
2
US
Two questions:
One: I have a fixed width text file downloaded from a mainframe. The first column contains a printer code that translates:
Blank Next line
+ Return to first column of current line (overstrike)
- Triple line space
0 Double line space
1 Form feed

My final out put is going to be a PDF that I am creating from a text file output. I switched out the characters above for the appropriated new line (\n) and form feed (\f) characters. The problem that I am having is the line with the plus (+), which tells the printer not to line feed, and print on the same line again. It is for underlines. For example the source file could look like this and the output should have MARCH underlined.

MONTH OF YEAR-TO-DATE PLANNED REMAINING
MARCH EXPENDITURES EXPENDITURES BALANCE
+ ______

Does anyone know how I can output an underline. It could be to a text file, a post script file or what ever I can use to ultimately created a pdf.

Question two: After I have tried switching out every conceivable escape character, I still get an unidentifiable little square characters when I open the output text file in Word. This would not be a problem, except nothing on the line after the little square characters will print.
$my_line =~ s/\s*$//g;
$my_line =~ s/\n//g;
$my_line =~ s/\r//g;
$my_line =~ s/\t//g;
$my_line =~ s/\v//g;
$my_line =~ s/\b//g;
Did I miss some invisible character? Any suggestions?

Gia McCue
 
On question two:

Do you have available a text editor capable of hexadecimal display?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top