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 18:35:05 +1000
On 21 Jun 2016, at 6:22 PM, Mitchell L Model <email@hidden> wrote:
>
> Is it really possible that TextEdit gets confused by Unicode characters? I thought everything (except browsers) could handle Unicode characters.
It's not getting confused by the characters -- it's just not recognizing that the file is UTF8.
> Except that although without the utf8 conversion, TextEdit doesn’t understand unicode characters above 256, BBEdit gets
> Examples overview — PyObjC — the Python ⟷ Objective-C bridge
> right for the dashes but not for the double arrow, and Emacs gets confused in the same way as TextEdit.
I don't know what TextEdit is doing, but you can't expect Emacs to deal with something like MacRoman unless it's been told to. BBEdit can deal with MacRoman -- but the problem this time is that the double-arrow is not a MacRoman character, so it can't be written correctly. The em-dashes are MacRoman characters in this example -- just encoded differently.
Write UTF-8. Read RTF-8. Be happy.
--
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