en-dash, em-dash, and the like obtained from Safari tab names
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