Login  Register

Re: degree sign

Posted by Gabriel Landini on Apr 04, 2008; 1:39pm
URL: http://imagej.273.s1.nabble.com/degree-sign-tp3696684p3696685.html

On Friday 04 April 2008 12:12:12 Michael Doube wrote:

> Hi all
>
> I'd like to output the degree sign ° (alt+0176) from a macro into the
> column heading of the Results table, and for that to be exportable to
> Excel. This works by including '°' in my macro code, but when I Save as
> xls I get this symbol ー instead. If you can't see it, it looks like one
> of the Arabic characters. This is under XP. Under Linux, I just get an
> empty box instead of an °.
>
> Any ideas?

Have a look at the Unicode.txt macro at the IJ site.

I guess that you need to use fromCharCode(176); for this.