Skip to main content
Participant
June 22, 2023
Question

Wrong characters after using FindChangeByList.applescript

  • June 22, 2023
  • 3 replies
  • 499 views

Hello there,
I'm using FindChangeByList.applescript (not jawascript – I won't use that one) with inDesign 18.1 and when I ask the following:
text {find what:"unit"} {change to:"unité"} {case sensitive:false, include master pages:true, whole word:true} Exemple
I get 'unit√©' instead of 'unité'
I've tried changing encoding of FindChangeList.txt from Unicode (UFT-8) to Unicode (UFT-16) as it seemed to work with someone else to no avail.
I've also tried this:
grep {find what:"é"} {change to:"\u00e9"} {case sensitive:false, include master pages:true, whole word:false} Exemple
But it does not work either.
Is there something I should do (otherwise than make the change within inDesign using search/replace)?

This topic has been closed for replies.

3 replies

m1b
Community Expert
Community Expert
June 25, 2023

Hi @Conelran, it would be worth trying the following:

1. Re-encode FindChangeList.txt as "UTF-8 with BOM" (eg. with VSCode or BBEdit etc.)

2. Try script again.

 

It seems like a long shot, but it look like an encoding problem so may work for you.

- Mark

ConelranAuthor
Participant
July 11, 2023

Thank you for your answer m1b.
I eventually gave up with applescript and started to use javascrip instead, as it does not have issues with accentuated characters.

Peter Kahrel
Community Expert
Community Expert
June 22, 2023

Instead of "\u00e9", try "\\x{00E9}".

ConelranAuthor
Participant
June 22, 2023

Thank you Peter for your answer, but I am afraid to tell it doesn't work either.

brian_p_dts
Community Expert
Community Expert
June 22, 2023

I believe you need to change \u00e9 to \\u00e9 in your last example

ConelranAuthor
Participant
June 22, 2023

Thank you for your answer Brian, aunfortunately this doesn't work either.