Re: en-dash and em-dash
Re: en-dash and em-dash
- Subject: Re: en-dash and em-dash
- From: Shane Stanley <email@hidden>
- Date: Tue, 21 Jun 2016 10:40:25 +1000
On 21 Jun 2016, at 9:32 AM, Mitchell L Model <email@hidden> wrote:
>
> I can’t make sense of this.
It is confusing.
First, the text in a variable has no encoding -- it's just all Unicode text, and how it's stored in the variable doesn't matter to you.
Encoding comes in when you read or write. Essentially, whatever encoding is used to write a file needs to be used to read the same file.
So if you are using "as «class utf8»" when you write -- and you generally should -- it's being written as UTF8. If you open the file and instead see something else, it means whatever you are reading the file with is reading it using different encoding.
One of the common pitfalls is when appending text, where writes are made using different encodings.
--
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