• 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: "W. Thomas Leroux" <email@hidden>
  • Date: Mon, 30 Oct 2006 18:09:15 -0500

I didn't realize that Applescript did everything in Unicode - although
it *does* make sense.

The target encoding I am aiming for is iso-8859-1.  I tried adding "as
iso-8859-1", but that didn't work, but at least I now know what the
problem is.

Thomas.



On 10/30/06, kai <email@hidden> wrote:

On 30 Oct 2006, at 20:58, W. Thomas Leroux wrote:

> Any more ideas?

Thomas, try keeping the whole shooting match in Unicode text. Remove
the 'as string' coercions...

> set current_song to (name of current track) as string
> set current_artist to (artist of current track) as string

... replacing the statements with something like:

----------------
set {name:current_song, artist:current_artist} to current track
----------------

Then try to open the file using Unicode (UTF-16) encoding - or to
read it with:

----------------
read file file_location as Unicode text
----------------

---
kai


_______________________________________________ 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



--
All about me!
http://www.leroux.ca
_______________________________________________
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
  • Follow-Ups:
    • Re: Strange character changes
      • From: Michelle Steiner <email@hidden>
    • Re: Re: Strange character changes
      • From: "Mark J. Reed" <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>)

  • Prev by Date: Re: Excel Selection
  • Next by Date: Re: Re: Strange character changes
  • Previous by thread: Re: Strange character changes
  • Next by thread: Re: Re: Strange character changes
  • Index(es):
    • Date
    • Thread