Livecode handling of directories with non-ascii (?) characters.

Alex Tweedly alex at tweedly.net
Tue Jan 24 13:27:44 EST 2012


I'm not sure if this is a LC question, or an OSX question, or a unicode 
question, or ... or what.

I have a folder with funny characters (:-) in its name, and that seems 
to cause a problem in LC.

When I do 'ls' in terminal, I get
> Björg Þórhallsdóttir
I cannot copy/paste this into a LC script using the script editor, but 
copy/pasting it into a text file, and then reading that (as a binfile) 
shows that the characters are

B j ˆ r g fi Û r h a l l s d Û t t i r
66 106 246 114 103 32 222 243 114 104 97 108 108 115 100 243 116 116 105 
114 10

However, in LC if I do
put the folders into myVar

what I get is

66 106 154 114 103 32 63 151 114 104 97 108 108 115 100 151 116 116 105 114

i.e. instead of
246 I get 154
243 I get 151
222 I get 63

and (naturally) I cannot then do "set the defaultfolder to line 2 of myVar"

So - is there anything I can do to get around this ?

Thanks
-- Alex.




More information about the use-livecode mailing list