• 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: Re: Strange character changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Strange character changes


  • Subject: Re: Re: Strange character changes
  • From: "Mark J. Reed" <email@hidden>
  • Date: Mon, 30 Oct 2006 18:41:34 -0500

AppleScript doesn't support arbitrary transcoding.  It understands
your local Mac* character set ("string") and Unicode ("unicode text");
that's it.

If you want to get Latin-1 text into a file, there are no doubt FBA's
and/or OSAXen that will do it, but I'll leave those recommendations to
others more knowledgeable than I.

I know you can also do it by scripting BBEdit, but I'm not at my Mac
right now so I can't work out the details for you.

Last but not least is the shell option.  Having written the file out
as Unicode, you can convert it to Latin-1 with iconv:

do shell script "iconv -f utf-16 -t iso-8859-1 " & (posix path of
temporary_file_location) & ">" & (posix path of final_file_location)





--
Mark J. Reed <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/mailman//archives/applescript-users

This email sent to email@hidden
References: 
 >Strange character changes (From: "W. Thomas Leroux" <email@hidden>)
 >Re: Re: Strange character changes (From: "W. Thomas Leroux" <email@hidden>)
 >Re: Strange character changes (From: kai <email@hidden>)
 >Re: Re: Strange character changes (From: "W. Thomas Leroux" <email@hidden>)

  • Prev by Date: Re: Re: Strange character changes
  • Next by Date: Re: FileMaker/AppleScript interactions: Get(LastError)
  • Previous by thread: Re: Re: Strange character changes
  • Next by thread: Re: Strange character changes
  • Index(es):
    • Date
    • Thread