• 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: Unicode or ascii
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unicode or ascii


  • Subject: Re: Unicode or ascii
  • From: Paul Berkowitz <email@hidden>
  • Date: Sun, 02 Apr 2006 09:58:32 -0800
  • Thread-topic: Unicode or ascii

On 4/2/06 8:44 AM, "Luther Fuller" <email@hidden> wrote:

> There seems to be a problem with the 'read' command. I would expect
> that it would return ascii as ascii and unicode as unicode. But it
> seems to be reading bytes, sometimes incorrectly or double-bytes,
> sometimes incorrectly, if I explicitly use 'as Unicode text'.
>
> Once the text is read incorrectly, it is NOT possible to convert the text.
>
> The only workaround I know would be to determine, before reading the
> file, if it's unicode or ascii. I don't know if this is possible.
> Anyone?

Do the Unicode files begin with (ASCII character 255 & ASCII character 256)
- i.e. FEFF - as I think they're supposed to - when you just 'read' from 1
to 2?

You don't have to open for access just to read a file, so you can read it
more than once without problem.

--
Paul Berkowitz


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Unicode or ascii (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Folder Actions technical questions
  • Next by Date: Re: Folder Actions technical questions
  • Previous by thread: Unicode or ascii
  • Next by thread: Re: Unicode or ascii
  • Index(es):
    • Date
    • Thread