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

Home » Public Forums » archive » Special characters in PostScript
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Special characters in PostScript [message #63825 is a reply to message #63714] Thu, 20 November 2008 16:00 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
David Fanning schrieb:
> Reimar Bauer writes:
>
>> yes it is true. I am not sure if an email to the news server has an
>> unicode (utf-8) encoding already.
>>
>> plot,findgen(10),title='J�lich', chars=3
>>
>> but however the � char changes in different encoding
>>
>> and you have no chance to change the idl prompt. :(
>
> Maybe I am still misunderstanding something. I've
> typed this command with *several* different encoding
> changes in my Workbench and I see *absolutely* no
> difference in the graphical output. (Which is what
> I expected to see, actually.)
>

If you have old code it is different (wrong) encoded. If you type new
code it is encoded by utf-8 on default now. So you can't see the
problem. But all old code is broken.

The old text looks only right if you switch to iso encoding. Because you
have typed the � sign in iso encoding in the past it has only 1 byte for
it's definition.
It can't be correct shown in utf-8 expression. You do see a strange sign
in the editor. If you run the program you also plot that strange symbol.
If you switch the editor back to iso format you have the old 1 byte
expression of the � char which can be plotted correctly.

Usually you add in python a # -*- coding: iso-8859-1 -*- line if you
want your code iso encoded in an editor or # -*- coding: utf-8 -*-
if you want utf-8.

Our idl code does not follow this simple rule. The editor has no chance
to get in which encoding the text was done before.



cheers
Reimar

> Are you seeing something different? My output is
> "wrong", of course. A capital A with a tilde over
> it, followed by a 1/4 sign. But I can't see how
> changing the editor text encoding will help here.
>
> Cheers,
>
> David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL 32/64 bits
Next Topic: Re: AVIs for the Mac

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

Current Time: Wed Oct 08 19:55:16 PDT 2025

Total time taken to generate the page: 0.00620 seconds