Re: Unicode or ascii
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