My Profile

Keep Up to Date:
Blog RSS
Blog
Forum RSS
Forum
Post New Topic Post Reply
Posted 1 Month, 3 Weeks ago
dsojda
Expert Boarder
Posts: 85
graphgraph
User Offline
 
Hello,

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). I 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. The characters above 128 are seen as a '?' (question mark).

I have set TERM=xterm in the .sh file which calls the java prog., but it makes no difference.

Can anyone please help me to display the characters above 128.

regards,
The administrator has disabled public write access.
Posted 1 Month, 3 Weeks ago
Arlo Tol
Senior Boarder
Posts: 51
graphgraph
User Offline
 
[...]

What's the output of »env grep -e LC -e LANG« at the command prompt? Set these variables as well.
The administrator has disabled public write access.
 
Copyright © 2006 - Dec 2008 My Linux Gang