Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8017971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:59:50+00:00 2026-06-04T20:59:50+00:00

Simple question but I can’t find the answer anywhere. No search strategy so far

  • 0

Simple question but I can’t find the answer anywhere. No search strategy so far has worked for me.

I have an ImageJ macro that opens a dialog for users to set the size of an image overlay. The dialog prompts users to provide the size of the overlay in microns:

Dialog.addNumber("Width (µm):", 500);
Dialog.addNumber("Height (µm):", 250);

The problem is that the dialog doesn’t display as expected: There is an extra character printed in front of the micron symbol. Instead of this (µm), I get this (¬µm).

It’s a character encoding issue, clearly. But I can’t find any documentation anywhere telling me how to properly insert a non-ASCII character into an ImageJ dialog. I’ve tried using ASCII code (230) and Unicode (U+00B5) in every way I can think of, but in those cases it simply renders as code rather than a symbol. There are macro calls in ImageJ to obtain a Unicode string for a character, but there is no way to print it back except as a string of numbers? I’m stumped.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T20:59:52+00:00Added an answer on June 4, 2026 at 8:59 pm

    What you do is this:

    Dialog.addNumber("Width (" + fromCharCode(181) + "m):", 500);
    Dialog.addNumber("Height (" + fromCharCode(181) + "m):", 250);
    

    where 181 is the decimal value of hexidecimal 00B5

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

very simple question (but I can't find the answer on the Web...): I have
I have a simple question but I can't find an answer (please give me
I have a very simple question, but can't seem to find a strait answer
Simple question but I can't find the answer anywhere on MSDN... Looking for the
This seems like a simple question but I can't find the answer anywhere. I've
Simple question but I can't seem to find the answer - can someone tell
A simple question but I can't find the answer in my book. I want
I would have a quite simple question, but can't find any suitable automated solution
simple question maybe but can't find solution. I have button for refresh/update some contents
This is probably a very simple question, but I can't find the answer, so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.