Welcome to the Ranch
128…255 are not ASCII characters. I suggest you read about the history of character encoding here.
Java can display any Unicode character, but not every platform can. The Windows® command line is notorious for its inability to display characters. Rather than using System.out.println, try a Java applicatoin, eg JOptionPane.showMessageDialog(null, "ª");
Joined: Sep 11, 2012
Hi Campbell Ritchie,
Thanks for reply my post
i agreed that from 128 to 255 is not ascii character but it is extended ascii character know then how do i display that character in java
Basically, The characters (with ASCII>=128)that you want to display, will display to an outputstream that has been encoded properly.
Unfortunately in this case the PrintStream is not encoded with the necessary encoding.
You can try encoding your PrintStream.
Or,you can try outputing the characters to a File (FileStream) and encode it with UTF-8.
Programming is about thinking, NOT coding
Joined: Aug 09, 2012
You can also check out this sample program
Joined: Oct 13, 2005
Dillibabu Balakrishnan wrote: . . . then how do i display that character in java