• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bug reading file as UTF-8? [Was: Reading file containing UTF-8]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Multi-threaded - thanks
  • Next by Date: Re: Panther: AppleScript 1.9.2 Release Notes
  • Previous by thread: Re: Cut & paste between Classic & OS X
  • Next by thread: applescript-users digest, Vol 3 #2139 - 17 msgs ( -Reply)
  • Index(es):
    • Date
    • Thread