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

matching strings with accented characters


  • Subject: matching strings with accented characters
  • From: Gary Bielby <email@hidden>
  • Date: Tue, 05 Apr 2005 17:00:25 +0100

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: "Wallace, William" <email@hidden>
  • Prev by Date: Re: Scripting stylistic question
  • Next by Date: Re: Mac vs unix Carriage returns on a text file format
  • Previous by thread: RE: Scripting stylistic question
  • Next by thread: Re: matching strings with accented characters
  • Index(es):
    • Date
    • Thread