• 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: en-dash and em-dash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: en-dash and em-dash (From: Mitchell L Model <email@hidden>)

  • Prev by Date: Re: en-dash and em-dash
  • Next by Date: Re: en-dash and em-dash
  • Previous by thread: Re: en-dash and em-dash
  • Next by thread: Re: en-dash and em-dash
  • Index(es):
    • Date
    • Thread