> I have a text file on the disk. The contents of the file are all
> characters from ascii value 33 to 250 (except the numbers 0..9).
Sorry, but you /don't/ have an ASCII file, then. ASCII is a 7bit coded
characterset, and only expresses codepoints between 0x00 (0) and 0x7f (127)
inclusive. There are /no/ ASCII characters above codepoint 127.
> have a Java program which reads this file and displays the contents.
> When the prog. is run at command prompt, everything is fine. When the
> program is run through cron, the result shows only characters which
> are below ascii value 128.
See above: ASCII does not have any characters above codepoint 127. If you
try to display such codepoints /as ASCII/, the display process cannot handle
them, and will substitute a generic glyph for any of those characters.
Quote:> The characters above 128 are seen as a '?'
See! Codepoints above 127 are not ASCII, and the display process substitutes
the '?' glyph for them.
> I have set the TERM="xterm", since thats what echo $TERM says on a
> command prompt.
> Can anyone please help me to display the characters above 128.
Change your characterset to something other than ASCII.
Beware, the glyphs for any codepoint vary depending on the characterset you
select. Select the /correct/ characterset for your data or you won't be able
to see your data correctly.
Lew Pitcher, IT Consultant, Application Architecture
Enterprise Technology Solutions, TD Bank Financial Group
(Opinions expressed here are my own, not my employer's)