Re: Bug reading file as UTF-8? [Was: Reading file containing UTF-8]
Re: Bug reading file as UTF-8? [Was: Reading file containing UTF-8]
- Subject: Re: Bug reading file as UTF-8? [Was: Reading file containing UTF-8]
- From: Tom Robinson <email@hidden>
- Date: Sat, 08 Nov 2003 11:29:20 +1300
A conclusion, for people following this thread...
I wrote:
>
The file contains an en-dash (option-hyphen). Without the 'until
>
linefeed' it looks fine in the event log. With the 'until linefeed'
>
the 3 bytes representing the em-dash never get converted.
Chris Nebel replied:
>
This is a brain damage in "read" -- "until" or "before" only work with
>
plain text and Unicode text (i.e., UTF-16), so your "as <<class utf8>>"
>
request is getting ignored.
So I've ended up using head and tail to return me blocks of data, and I'm iterating over them within the AppleScript.
Cheers
--
Women DO come with instructions. Just ask them!
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.