comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » IDL Fonts, Encoding, and International Characters
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
IDL Fonts, Encoding, and International Characters [message #77223] Tue, 16 August 2011 13:05
Robert da Silva is currently offline  Robert da Silva
Messages: 1
Registered: August 2011
Junior Member
Greetings,

I have recently been having a particular issue dealing with how IDL
encodes its international characters and how they are displayed. My
goal is to be able to have a widget_text() box which can display
international characters.

I have encountered the following issue on a Mac running IDL 7.0 and a
Linux box running IDL 8.1

I can create a string as follows using the compose key on my keyboard:
IDL> s='ñ'
And I can get my IDL command line to properly output the value of the
string
IDL> print, s
ñ
Now I notice that this character is stored as a 2 character string and
my encoding is properly transforming it to my screen when I print it
out
IDL> print,strlen(s)
2
IDL> print, strmid(s, 0, 1)
?
IDL> print, strmid(s, 1, 1)
?
IDL> print, strmid(s, 0, 2)
ñ
Now the problem arises when I want to use this character in a widget
or a plot as such
IDL> plot, [0], /nodata, title=s
The title of the plot gets set as a capital A with a tilde followed by
a plus-minus sign.

Is there any way in which I can change the encoding with which plots
and widgets interpret symbols?

I also note that textoidl() does not appear to be working within the
context of widgets. Is this a common occurrence or am I just doing
something incorrectly?

Thanks!
Robert da Silva
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Sun Terminator Program
Next Topic: my god, it's full of stars....

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:37:55 PDT 2025

Total time taken to generate the page: 0.00537 seconds