If you want to use the normal process (select the text and add the bookmark directly), I used the code below to remove the accents after they were all created. (in my case, I only noticed the error of 40 ready files and all had this problem, which did not occur when using the updated acrobat reader, but occurred in some readers and some browsers
for (i=0; i<app.activeDocument.hyperlinkTextDestinations.length; i++){
If you want to use the normal process (select the text and add the bookmark directly), I used the code below to remove the accents after they were all created. (in my case, I only noticed the error of 40 ready files and all had this problem, which did not occur when using the updated acrobat reader, but occurred in some readers and some browsers
for (i=0; i<app.activeDocument.hyperlinkTextDestinations.length; i++){
app.activeDocument.hyperlinkTextDestinations[i].name=app.activeDocument.hyperlinkTextDestinations[i].name.replace ("ç","c")
app.activeDocument.hyperlinkTextDestinations[i].name=app.activeDocument.hyperlinkTextDestinations[i].name.replace ("ó","o")
app.activeDocument.hyperlinkTextDestinations[i].name=app.activeDocument.hyperlinkTextDestinations[i].name.replace ("á","a")
app.activeDocument.hyperlinkTextDestinations[i].name=app.activeDocument.hyperlinkTextDestinations[i].name.replace ("í","i")
app.activeDocument.hyperlinkTextDestinations[i].name=app.activeDocument.hyperlinkTextDestinations[i].name.replace ("õ","o")
app.activeDocument.hyperlinkTextDestinations[i].name=app.activeDocument.hyperlinkTextDestinations[i].name.replace ("ã","a")
}