how to display Unicode in my Eclipse? [message #200260] |
Sun, 18 March 2007 16:31 |
Eclipse User |
|
|
|
Originally posted by: ihybily.gmail.com
hallo
i've use the methode to display the Unicode with a codePoint.
String newString(int codePoint) {
if (Character.charCount(codePoint) == 1) {
return String.valueOf((char)codePoint);
} else {
return new String(Character.toChars(codePoint));
}
}
but i found the Supplementary Characters can not be displayed,instead
there is a "?" why?
how can i made them displayed?
thanks
amy
|
|
|
|
Re: how to display Unicode in my Eclipse? [message #200290 is a reply to message #200268] |
Sun, 18 March 2007 18:34 |
Eclipse User |
|
|
|
Originally posted by: ihybily.gmail.com
now i'm doing a naive test:
i open the Openoffice Writer, do INSERT\Special Characters
for example "£€¥"
i copy them to the editor of Eclipse.
They can be WELL displayed.
then i print them
System.out.print(" £ € ¥ ");
symbols displayed in the CONSOLE are now:
" ? € ? "
what's wrong with the Console?
why some of them can not be displayed while some can?
and i've tried many fonts: Arial, Code2001. always the same result.
why??
|
|
|
|
Powered by
FUDForum. Page generated in 0.08349 seconds