aspose file tools
The moose likes Java in General and the fly likes question abpout characters. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "question abpout characters." Watch "question abpout characters." New topic
Author

question abpout characters.

prateek narang
Greenhorn

Joined: Apr 04, 2001
Posts: 19
hi! all, have a look on this code
class Charvalue
{
public static void main(String[] args)
{
for (int i = 0x0004;i <=0xFFFE;i++ )
{
System.out.println(i );
System.out.println((char)i);
}
}
}
In the output i get some of the character but most of the output is consist of question mark (?). Can anybody tell me why it's so?
Scott Palmer
Ranch Hand

Joined: Jul 11, 2001
Posts: 31
That's normal. Most of the characters will not be defined in the font or codepage that you are using. E.g. You won't get Japanese characters if you haven't installed Japanese fonts.
There is also a file that is part of the JRE that tells the java run time what characters are available.
Look for jre/lib/font.*
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: question abpout characters.
 
Similar Threads
a question
post increment confusion
How many Objects?
Maths Output
exception..try catch block execution