Problem displaying unicode symbol in statusbar with showStatus()

Hi there. As probably you can tell by the suject title this is my first post here.

Just started coding in Java and writing my first few applets. I'd like to display the unicode copyright symbol in the statusbar. I've searched the net and tried many different methods with no result. I thought this would work:

showStatus("Company Name \u00A9; 2006");

No luck. Just displays "Company Name ?9 2006". Any help woud be appreciated. Cheers,

mez.

[473 byte] By [mezcala] at [2007-10-3 4:39:10]
# 1
Just a guess - did you try the HTML entity instead? & copy; I think.?
CeciNEstPasUnProgrammeura at 2007-7-14 22:43:05 > top of Java-index,Java Essentials,Java Programming...
# 2
Thanks,Tried HTML "& copy;" - but it just displays the actual text. If I put an esacpe before it "\& copy;" I get an invalid use of escape character when compiling the code...
mezcala at 2007-7-14 22:43:05 > top of Java-index,Java Essentials,Java Programming...
# 3
> Tried HTML "& copy;" - but it just displays the> actual text. You have to remove the space, as what I posted is not the original HTML entity. I can't post the real one because it'll converted to the ?char.
CeciNEstPasUnProgrammeura at 2007-7-14 22:43:05 > top of Java-index,Java Essentials,Java Programming...
# 4
@Op. What statusbar?
kajbja at 2007-7-14 22:43:05 > top of Java-index,Java Essentials,Java Programming...
# 5
Yeah I figured that. Thanks though.
mezcala at 2007-7-14 22:43:05 > top of Java-index,Java Essentials,Java Programming...
# 6
> @Op. What statusbar?Browser.
CeciNEstPasUnProgrammeura at 2007-7-14 22:43:05 > top of Java-index,Java Essentials,Java Programming...
# 7
> Yeah I figured that. Thanks though.Still doesn't work?
CeciNEstPasUnProgrammeura at 2007-7-14 22:43:05 > top of Java-index,Java Essentials,Java Programming...
# 8
Yep, the browser's statusbar. Thanks.
mezcala at 2007-7-14 22:43:05 > top of Java-index,Java Essentials,Java Programming...
# 9
> Still doesn't work?Not yet. This small problem has been driving me crazy, especially as it's probably the most simple part of the applet's code!Thanks for replying! Cheers, mez.
mezcala at 2007-7-14 22:43:05 > top of Java-index,Java Essentials,Java Programming...
# 10

> > Still doesn't work?

>

> Not yet. This small problem has been driving me

> crazy, especially as it's probably the most simple

> part of the applet's code!

I think the problem is to find out what the browser expects. Does it work if you try it with Javascript?

CeciNEstPasUnProgrammeura at 2007-7-14 22:43:05 > top of Java-index,Java Essentials,Java Programming...
# 11
> I think the problem is to find out what the browser> expects. Does it work if you try it with Javascript?Yeah, no problem with Javascript using either '& copy;' or '\u00A9;'.
mezcala at 2007-7-14 22:43:05 > top of Java-index,Java Essentials,Java Programming...
# 12
Have you tried "©" without the space. You keep showing it with a space which is no good. But then maybe you're doing that to stop the forum converting it
malcolmmca at 2007-7-14 22:43:05 > top of Java-index,Java Essentials,Java Programming...
# 13
> Have you tried "©" without the space. You> keep showing it with a space which is no good. But> then maybe you're doing that to stop the forum> converting itYep, just using the space to stop the forum converting it to ©.
mezcala at 2007-7-14 22:43:05 > top of Java-index,Java Essentials,Java Programming...
# 14
Use "©" to get entities to display on the forum in source form.
malcolmmca at 2007-7-14 22:43:05 > top of Java-index,Java Essentials,Java Programming...
# 15
> Use "©" to get entities to display on> the forum in source form.Thanks malcolmmc. That will be very useful. Cheers, mez.
mezcala at 2007-7-21 10:39:53 > top of Java-index,Java Essentials,Java Programming...
# 16
As to your original problem, are you using IE as a browser, with the original MS JVM?It's looking like whatever font is being used simply doesn't include the © character. You may have to resort to "(c)" (Which seems to be generally understood as the same thing).
malcolmmca at 2007-7-21 10:39:53 > top of Java-index,Java Essentials,Java Programming...
# 17

> As to your original problem, are you using IE as a

> browser, with the original MS JVM?

>

> It's looking like whatever font is being used simply

> doesn't include the character. You may have to

> resort to "(c)" (Which seems to be generally

> understood as the same thing).

Generally I use Firefox, but always check for browser compatibility with IE, Opera and Netscape. All exhibit the same problem. Also have the latest JDK and JRE versions installed.

I guess this is just one of those annoying little problems that has become a pain not to solve.

mezcala at 2007-7-21 10:39:53 > top of Java-index,Java Essentials,Java Programming...
# 18
bump - anyone?
mezcala at 2007-7-21 10:39:53 > top of Java-index,Java Essentials,Java Programming...
# 19
You said you could do it in JavaScript?Then that's the workaround. Have your applet call a script that does what you want.
cotton.ma at 2007-7-21 10:39:53 > top of Java-index,Java Essentials,Java Programming...
# 20
Ok. Super suave. Thanks cotton.m!
mezcala at 2007-7-21 10:39:53 > top of Java-index,Java Essentials,Java Programming...