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

Strange character changes


  • Subject: Strange character changes
  • From: "W. Thomas Leroux" <email@hidden>
  • Date: Mon, 30 Oct 2006 13:39:08 -0500

I've written a little applescript that takes the currently playing
song name and artist name and writes them to disk

However, I noticed that names with "odd" characters show up oddly, for
example, Björk gets saved as Bjšrk

Relevant code:


set current_song to (name of current track) as string set current_artist to (artist of current track) as string set write_to_disk to current_song & " - " & current_artist & return

set fileID to open for access file file_location with write permission
set eof of fileID to 0
write write_to_disk to fileID
close access fileID

Any suggestions?

Thanks all!

Thomas.



--
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: Strange character changes
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: Writing to file as UTF8 with BOM ?
  • Next by Date: Re: Strange character changes
  • Previous by thread: Re: Quark 7
  • Next by thread: Re: Strange character changes
  • Index(es):
    • Date
    • Thread