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

Home » Public Forums » archive » from 6.4 to 7.0
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
from 6.4 to 7.0 [message #58394] Mon, 28 January 2008 14:01 Go to next message
skymaxwell@gmail.com is currently offline  skymaxwell@gmail.com
Messages: 127
Registered: January 2007
Senior Member
hello, guys

i have widget application, written at idl 6.4. Now i want to port it
to 7.0.
it's ok ...except string values of my buttons, menus etc in 7.0.
When i run my application in 7.0 i've got bad symbols like
hieroglyphs :((

So what happened with strings in 7.0 ?
Re: from 6.4 to 7.0 [message #58499 is a reply to message #58394] Wed, 30 January 2008 11:39 Go to previous messageGo to next message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Jan 28, 3:01 pm, "skymaxw...@gmail.com" <skymaxw...@gmail.com>
wrote:
> hello, guys
>
> i have widget application, written at idl 6.4. Now i want to port it
> to 7.0.
> it's ok ...except string values of my buttons, menus etc in 7.0.
> When i run my application in 7.0 i've got bad symbols like
> hieroglyphs :((
>
> So what happened with strings in 7.0 ?

Nothing changed for strings or widget programs between IDL6.4 and 7.0.
The only difference is the encoding used by the text editor. By
default the IDL Workbench is set to use UTF-8 encoding for all text
files. This works fine for most character sets, especially East Asian
languages. However, it can cause problems for characters in some
languages such as German.

To change the default encoding in the IDL Workbench, go under Window-
> Preferences. Start typing in the word "encoding" in the filter box at
the top of the dialog. It should filter the page list so you only see
the General->Workspace preference page. Select this preference page.
Then in the "Text file encoding", instead of UTF-8, try choosing
ISO-8859-1.

You can also change this encoding for a specific file by right-
clicking on the file in the Project Explorer, and choosing
"Properties". But it's easier to change it for all files.

Hope this helps.
-Chris
Re: from 6.4 to 7.0 [message #58572 is a reply to message #58394] Fri, 08 February 2008 05:52 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
No Message Body
Re: from 6.4 to 7.0 [message #58577 is a reply to message #58499] Fri, 08 February 2008 01:36 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Chris Torrence schrieb:
> On Jan 28, 3:01 pm, "skymaxw...@gmail.com" <skymaxw...@gmail.com>
> wrote:
>> hello, guys
>>
>> i have widget application, written at idl 6.4. Now i want to port it
>> to 7.0.
>> it's ok ...except string values of my buttons, menus etc in 7.0.
>> When i run my application in 7.0 i've got bad symbols like
>> hieroglyphs :((
>>
>> So what happened with strings in 7.0 ?
>
> Nothing changed for strings or widget programs between IDL6.4 and 7.0.
> The only difference is the encoding used by the text editor. By
> default the IDL Workbench is set to use UTF-8 encoding for all text
> files. This works fine for most character sets, especially East Asian
> languages. However, it can cause problems for characters in some
> languages such as German.

Well utf-8 is pretty fine with German too. Unfortunately older code
before 7.0 was always written using iso-8859-1 -*- and idl is not using
utf-8 encoding.

It would be nice idl can support utf-8 too. A unicode string type on
default would be great. I do like using signs like

↓ → ← ↑ ¶ ß « »

independent from ö ä ü too


Btw. it is quite easy to add a line similiar to this to all of our
scripts. It would be nice the workbench checks such a line and did set
the right encoding then.

;-*- coding: iso-8859-1 -*-


For the idl shell or the prompt I don't found a switch to set a
different encoding.

cheers
Reimar
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: K- Nearest neighbor classification
Next Topic: Re: IDL workbench & windows

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

Current Time: Fri Oct 10 16:24:17 PDT 2025

Total time taken to generate the page: 0.24537 seconds