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

Home » Public Forums » archive » byte/unicode mismatch
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: byte/unicode mismatch [message #63847 is a reply to message #63772] Thu, 20 November 2008 09:23 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Nov 20, 3:19 am, Reimar Bauer <R.Ba...@fz-juelich.de> wrote:
> Hi
>
> the ascii table is gone.
>
> IDL> print,byte('ü')
>  195 188
>
> A char has now two bytes
>
> IDL> help, byte('ü')
> <Expression>    BYTE      = Array[2]
>
> This means all of the fast string replacing routines which are related
> to iso encoded ascii one byte characters are broken in 7.0
>
> What is the name of the function to convert byte('ü') into 252b ?

I guess it is how you type/enter the ü:

IDL> u = string(252B)
IDL> print, u
ü
IDL> help, u
U STRING = 'ü'
IDL> print, byte(u)
252

Mike
--
www.michaelgalloy.com
Tech-X Corporation
Associate Research Scientist
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: maximum LUN
Next Topic: Data organization question

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

Current Time: Fri Oct 10 01:46:26 PDT 2025

Total time taken to generate the page: 1.67967 seconds