• 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: What is Best Practice for Reading Files of Unknown Encoding?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is Best Practice for Reading Files of Unknown Encoding?


  • Subject: Re: What is Best Practice for Reading Files of Unknown Encoding?
  • From: Jonathan Levi <email@hidden>
  • Date: Tue, 21 Jun 2016 13:05:47 -0400

If you opened it first in a hex editor, wouldn't that show you the encoding?--Jonathan



-----Original Message-----
From: Jim Underwood <email@hidden>
To: pscott <email@hidden>; Deivy Petrescu <email@hidden>; Mitchell L Model <email@hidden>
Cc: applescript-users <email@hidden>
Sent: Tue, Jun 21, 2016 12:18 am
Subject: What is Best Practice for Reading Files of Unknown Encoding?

Paul,

Thanks for your very comprehensive statement.

So, what is the best practice when reading a file in AppleScript that you did not write, and you do not have any authoritative information about its encoding?


Best Regards,
 
Jim Underwood
aka JMichaelTX


From: <applescript-users-bounces+jmichael=email@hidden> on behalf of pscott <email@hidden>
Date: Mon, Jun 20, 2016 at 10:58 PM
Subject: Re: en-dash and em-dash

  1. When you READ from a file, the reader must be use the SAME Unicode ENCODING, or you'll get strange results. Sometimes the reader can guess what the encoding is, sometimes not.
_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (applescript-email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users This email sent to email@hidden
 _______________________________________________
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: 
 >What is Best Practice for Reading Files of Unknown Encoding? (From: Jim Underwood <email@hidden>)

  • Prev by Date: Re: en-dash and em-dash
  • Next by Date: Mail script puzzlement
  • Previous by thread: Re: What is Best Practice for Reading Files of Unknown Encoding?
  • Next by thread: Mail script puzzlement
  • Index(es):
    • Date
    • Thread