Copy link to clipboard
Copied
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)?
Copy link to clipboard
Copied
I believe you need to change \u00e9 to \\u00e9 in your last example
Copy link to clipboard
Copied
Thank you for your answer Brian, aunfortunately this doesn't work either.
Copy link to clipboard
Copied
Instead of "\u00e9", try "\\x{00E9}".
Copy link to clipboard
Copied
Thank you Peter for your answer, but I am afraid to tell it doesn't work either.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now