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]

Just a guess - did you try the HTML entity instead? & copy; I think.?
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...
> 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.
@Op. What statusbar?
kajbja at 2007-7-14 22:43:05 >

Yeah I figured that. Thanks though.
> @Op. What statusbar?Browser.
> Yeah I figured that. Thanks though.Still doesn't work?
Yep, the browser's statusbar. Thanks.
> 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.
> > 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?
> 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;'.
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
> 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 ©.
Use "©" to get entities to display on the forum in source form.
> Use "©" to get entities to display on> the forum in source form.Thanks malcolmmc. That will be very useful. Cheers, mez.
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).
> 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.
You said you could do it in JavaScript?Then that's the workaround. Have your applet call a script that does what you want.
Ok. Super suave. Thanks cotton.m!