Re: Read a text file
Re: Read a text file
- Subject: Re: Read a text file
- From: Emmanuel LEVY <email@hidden>
- Date: Thu, 07 Aug 2014 10:10:21 +0200
I would say:
Start with UTF-16, because if a file is not UTF-16, and it uses more than ASCII characters, it is very, very, very unlikely to be able to read as UTF-16. So if UTF-16 fails, you can drop back to something else, for instance UTF-8, etc.
Best,
Emmanuel
On Aug 7, 2014, at 1:42 AM, Shane Stanley wrote:
> Start with UTF-8, because if a file is not UTF-8, and it uses more than ASCII characters, it is very, very unlikely to be able to read as UTF-8. So if UTF-8 fails, you can drop back to something else.
>
> But there's no foolproof method.
>
> --
> Shane Stanley <email@hidden>
> <www.macosxautomation.com/applescript/apps/>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden