• 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: unicode to ascii (not MacRoman)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unicode to ascii (not MacRoman)


  • Subject: Re: unicode to ascii (not MacRoman)
  • From: Emmanuel <email@hidden>
  • Date: Fri, 4 Mar 2005 01:29:41 +0100

At 5:40 PM -0500 3/3/05, Steven D.Majewski wrote:
I've read all of the archived messages I could find looking for a way
to coerce the unicode text I'm getting from iTunes into plain ASCII.

After none of the many methods listed worked for me, I finally figured
out from Chris Nebel's message:
http://lists.apple.com/archives/applescript-implementors/2004/Feb/msg00039.html

that when folks in those threads were talking about ASCII plain text, what
they *really* meant was MacRoman (or some other extended encoding) 8-bit chars.


IS there any way within applescript (other than calling out to a python or perl
script with 'do shell script' ) to coerce a unicode string into ASCII ?


I have an iTunes script which gets the artist of the current selection
( or playing tune ) and does a lookup at our music library, but the search
doesn't like (for example) the  o-with-circumflex in "Antônio Carlos Jobim"

A reduced question could be, is there a way of coerce MacRoman to ASCII, and even with this more limited scope I don't know an answer.


For me, it's your search which requires fixing, not the artist's name. I'm not a specialist of iTunes, how comes that the search doesn't like "ô"? I scripted iTunes long ago, I can't remember such problems.
I mean, anyway we are searching Unicode in a XML, it's supposed to work flawlessly.


Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >unicode to ascii (not MacRoman) (From: "Steven D.Majewski" <email@hidden>)

  • Prev by Date: Re: get current system volume
  • Next by Date: Re: About integers
  • Previous by thread: unicode to ascii (not MacRoman)
  • Next by thread: Re: unicode to ascii (not MacRoman)
  • Index(es):
    • Date
    • Thread