• Post Reply Bookmark Topic Watch Topic
  • New Topic

export LC_CTYPE="en_US.ISO8859-1" not working  RSS feed

 
Sai Shanker
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends ,
I am trying to run the program on Trustix Linux version - version 2.05b.0(2)-release (i586-trustix-linux-gnu) . I have a small program that outputs a copyright symbol on the console.
Before i run the program I set the LC_CTYPE varible to 'en_US.ISO8859-1'
and export it as follows:-


LC_CTYPE="en_US.ISO8859-1"
export LC_CTYPE

I tried to execute the above 2 lines just before I invoke my program through the shell file .As it did not work then i placed these lines
in the .bash_profile but even then I don't get to see a CopyRight symbol
All i get on the console is a Question Mark - (?).



program:-

import java.io.*;

public class testCopyRight
{
public static void main(String[] args)
{
String copyRight= "\u00a9"; //html entity for CopyRight Symbol
System.out.println(" CopyRight Symbol ="+copyRight);
}
}

Thanks.
Shanker.
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps you got more luck with


I don't know trustix - is 2.05 the version of the kernel? I don't think so.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!