Re: matching strings with accented characters
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