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

Home » Public Forums » archive » file_search problem
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: file_search problem [message #92355 is a reply to message #92354] Wed, 25 November 2015 09:05 Go to previous messageGo to previous message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
On Wed, 25 Nov 2015 07:58:07 -0800 (PST), fawltylanguage@gmail.com
wrote:

> On Wednesday, November 25, 2015 at 4:45:37 PM UTC+1, Jim P wrote:
>>
>> A substantial amount of work was put into I18N a few releases ago, but it looks like this is a special case.
>>
>> Interesting...
>>
>> IDL> print, byte('î')
>> 238
>> IDL> print, string(238b)
>> î
>>
>> ...however,
>>
>> IDL> print, byte('a')
>> 97
>> IDL> print, string(97b)
>> a
>>
>> Jim P.
>
> I think the first one is in extended ASCII (0-255) and the second one is a true Unicode character.

Let me add, that this conversion seems to take place during string
input. No conversion happens, if the string "is really UTF-8":

IDL> a=['C3'xb,'AE'xb]
IDL> print,a
195 174
IDL> print,string(a)
î
IDL> print,byte(string(a))
195 174
IDL> b=['C4'xb,'83'xb]
IDL> print,string(b)
a
IDL> print,byte(string(b))
196 131

I hope, my news agent will choose the correct charset (UTF-8)! I'm not
sure.

Cheers, Heinz
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Compare non-linear function fit parameters of two data sets
Next Topic: EXTRACT_SLICE

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

Current Time: Wed Oct 08 15:56:00 PDT 2025

Total time taken to generate the page: 0.00396 seconds