Umlauts in IDL 6.0 and 7.0

This is a discussion on Umlauts in IDL 6.0 and 7.0 within the Idl-pvwave forums in Programming Languages category; Dear all. I have encountered an annoying problem with IDL 7.0 (German version, German keyboard). All the umlauts within programs I wrote with IDL 6.0 are changed to some weird characters. Also, when I use Xyouts, 0.5, 0.5, 'ä', Align = 0.5, CharSize = 4, /Normal IDL 7.0 displays two special characters, while IDL 6.0 correctly displays "ä". When I enter print, byte('ä') in IDL 7.0's command line I get "195 164" as a result. IDL 6.0 correctly prints "228". Also the degree symbol is incorrectly displayed. So what is going on here? Do I have to change the character ...

Go Back   Application Development Forum > Programming Languages > Idl-pvwave

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-20-2008, 08:20 AM
MichaelT
Guest
 
Default Umlauts in IDL 6.0 and 7.0

Dear all.

I have encountered an annoying problem with IDL 7.0 (German version,
German keyboard). All the umlauts within programs I wrote with IDL
6.0 are changed to some weird characters. Also, when I use

Xyouts, 0.5, 0.5, 'ä', Align = 0.5, CharSize = 4, /Normal

IDL 7.0 displays two special characters, while IDL 6.0 correctly
displays "ä".

When I enter

print, byte('ä')

in IDL 7.0's command line I get "195 164" as a result.
IDL 6.0 correctly prints "228".

Also the degree symbol is incorrectly displayed.

So what is going on here? Do I have to change the character set or
something? How do I do this?

Michael
Reply With Quote
  #2  
Old 08-20-2008, 08:09 PM
RussellGrew
Guest
 
Default Re: Umlauts in IDL 6.0 and 7.0

http://astro.uni-tuebingen.de/software/idl/textoidl/

Might be a solution (assuming you are familiar with LaTeX).

I realise this does not address the root of your problem. I haven't
taken the plunge to IDL 7 yet.
Reply With Quote
  #3  
Old 08-21-2008, 06:12 AM
biophys
Guest
 
Default Re: Umlauts in IDL 6.0 and 7.0

It looks to me that IDL70 is giving you two numbers equivalent to
hexnumber c3a4 which is exactly the hexcode for 'ä' in UTF-8. I guess
it can be solved if there is a way to force IDL to think in UTF-16 or
UTF-32.I'm not sure how to solve it but here's a "virtual kwyboard"
for you(http://tinyurl.com/fontart).

bp

On Aug 20, 5:20*am, MichaelT <michael.theus...@googlemail.com> wrote:
> Dear all.
>
> I have encountered an annoying problem with IDL 7.0 (German version,
> German keyboard). All the umlauts within programs I wrote with IDL
> 6.0 *are changed to some weird characters. Also, when I use
>
> Xyouts, 0.5, 0.5, 'ä', Align = 0.5, CharSize = 4, /Normal
>
> IDL 7.0 displays two special characters, while IDL 6.0 correctly
> displays "ä".
>
> When I enter
>
> print, byte('ä')
>
> in IDL 7.0's command line I get "195 164" as a result.
> IDL 6.0 correctly prints "228".
>
> Also the degree symbol is incorrectly displayed.
>
> So what is going on here? Do I have to change the character set or
> something? How do I do this?
>
> Michael


Reply With Quote
  #4  
Old 08-22-2008, 01:21 PM
Ed Hyer
Guest
 
Default Re: Umlauts in IDL 6.0 and 7.0

Hey, that's a cool app! When I saw the start of this thread, it got me
thinking how useful such a thing could be, and when I got to the end,
I saw someone had already written it!

That said, it would be much more useful to me in sourcecode form, so
that I could run it to generate code sequences within a development
instance.

The wiki says "source code available upon request," but there are no
email addresses...

Cheers,

--Edward H.
Reply With Quote
  #5  
Old 08-26-2008, 08:14 AM
MichaelT
Guest
 
Default Re: Umlauts in IDL 6.0 and 7.0

On Aug 21, 12:12 pm, biophys <biop...@gmail.com> wrote:
> It looks to me that IDL70 is giving you two numbers equivalent to
> hexnumber c3a4 which is exactly the hexcode for 'ä' in UTF-8. I guess
> it can be solved if there is a way to force IDL to think in UTF-16 or
> UTF-32.

Ok, I understand the problem now, but, I could not find a way to solve
it...
Is there really no one else who has the same trouble? Any users from
Germany?

> I'm not sure how to solve it but here's a "virtual kwyboard"
> for you(http://tinyurl.com/fontart).

Many thanks for this link! That really is one nice program!

Thanks,
Michael

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 11:28 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.