Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » how to display Unicode in my Eclipse?
how to display Unicode in my Eclipse? [message #200260] Sun, 18 March 2007 16:31 Go to next message
Eclipse UserFriend
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 #200268 is a reply to message #200260] Sun, 18 March 2007 16:40 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
amy wrote:

> 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?

Make sure the character is supported by your font.

Dani

>
> thanks
> amy
>
>
Re: how to display Unicode in my Eclipse? [message #200290 is a reply to message #200268] Sun, 18 March 2007 18:34 Go to previous messageGo to next message
Eclipse UserFriend
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??
Re: how to display Unicode in my Eclipse? [message #200338 is a reply to message #200290] Mon, 19 March 2007 07:51 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
amy wrote:

> 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?

I guess it uses the wrong encoding. Open the launch config and go to the
'Common' page: there you can set the encoding.

Dani

> why some of them can not be displayed while some can?
>
> and i've tried many fonts: Arial, Code2001. always the same result.
>
> why??
>
Previous Topic:Java editor mark occurrences colour
Next Topic:TPTP and tunnel
Goto Forum:
  


Current Time: Fri Apr 26 18:31:54 GMT 2024

Powered by FUDForum. Page generated in 0.08349 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top