• 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: matching strings with accented characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: matching strings with accented characters


  • Subject: Re: matching strings with accented characters
  • From: "Wallace, William" <email@hidden>
  • Date: Tue, 05 Apr 2005 11:53:00 -0500

Hmmm. Works fine OMM. How was the text file saved originally? If you open it
in TextEdit or something, are the accented characters really in the file? Is
it possible that the accented characters were stripped out of the file
before your applescript ever got a hold of it?
--
St!ff


On 4/5/05 11:00 AM, "Gary Bielby" <email@hidden> wrote:

> hi, l've got a problem trying to match two strings when they have
> accented characters in them ;-(
>
> what l'm doing is reading in a text file with the following sub code:
>
> on readInFile(localcntrlFile)
>         open for access localcntrlFile
>         set prefsContents to read localcntrlFile as string using
> delimiter {return}
>
>         close access localcntrlFile
>
>         return prefsContents
> end readInFile
>
> Each line is returned to a list which is then passed onto a repeat loop
> to try and match the strings from the text file on a quarkxpress page,
> and if l find a match then replace it with another string.
>
> This works great until l found out that the text file isn't reading
> accented characters. Is there any way of reading in accented characters
> in the text file?
>
> Regards, Gary.
>
>
>
>
 _______________________________________________
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

  • Follow-Ups:
    • Re: matching strings with accented characters
      • From: Gary Bielby <email@hidden>
References: 
 >matching strings with accented characters (From: Gary Bielby <email@hidden>)

  • Prev by Date: Re: Mac vs unix Carriage returns on a text file format
  • Next by Date: New to OS X question: scripting desktop picture
  • Previous by thread: matching strings with accented characters
  • Next by thread: Re: matching strings with accented characters
  • Index(es):
    • Date
    • Thread