• 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
en-dash, em-dash, and the like obtained from Safari tab names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

en-dash, em-dash, and the like obtained from Safari tab names


  • Subject: en-dash, em-dash, and the like obtained from Safari tab names
  • From: Mitchell L Model <email@hidden>
  • Date: Sat, 18 Jun 2016 18:04:54 -0400

Please help me with something I am sure is trivial. I have already spent too much frustrating time looking for an answer to a question I don’t know how to phrase. This surprises me because I am very familiar with all the issues involved, I just can’t seem to put together what I need. 

I am constructing HTML text by appending pieces of text to a string in a simple AppleScript. One of things I want to include is a link to Safari's front tab. I’ve discovered that an en-dash (#8211) and an em-dash (#8212) in the name of a tab turn into Ñ and Ð respectively when I append the tab name to the string. 

I don’t understand this. I thought the whole world is Unicode now, and we don’t have to worry about things like this. I understand the necessity for special handling of URLs, but why should a tab name’s characters change when appended to a string in an AppleScript? (I realize there are different ideas of how to encode an en- and em-dash, but I believe these codes are the correct ones.)



 _______________________________________________
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

  • Follow-Ups:
    • Re: en-dash, em-dash, and the like obtained from Safari tab names
      • From: Shane Stanley <email@hidden>
    • Re: en-dash, em-dash, and the like obtained from Safari tab names
      • From: Mitchell L Model <email@hidden>
    • Re: en-dash, em-dash, and the like obtained from Safari tab names
      • From: Steve Mills <email@hidden>
  • Prev by Date: Re: Script Debugger 6 Officially Released
  • Next by Date: Re: en-dash, em-dash, and the like obtained from Safari tab names
  • Previous by thread: Re: set selection of a SD document to end?
  • Next by thread: Re: en-dash, em-dash, and the like obtained from Safari tab names
  • Index(es):
    • Date
    • Thread