Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
4

Wrong characters after using FindChangeByList.applescript

Community Beginner ,
Jun 21, 2023 Jun 21, 2023

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)?

TOPICS
Scripting
505
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 22, 2023 Jun 22, 2023

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 22, 2023 Jun 22, 2023

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 22, 2023 Jun 22, 2023

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 22, 2023 Jun 22, 2023

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 24, 2023 Jun 24, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 11, 2023 Jul 11, 2023
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines