1 person found this helpful
What probably happens is that though you enter the È with one keypress, in reality you end up with two characters. Not sure why you get different results from the ESTK and the script palette, but one remedy is to use unicode values for accented characters. È corresponds to \xC8 and \u00C8. So "\u00C8 necessario ..." would do the trick.
Thanks for the tip Peter,
but this thing is really weird... I don't understand why also the alert text has the same problem.
It looks like some application bug.
try adding in: myFile.encoding = "UTF8";
I had problems with UTF encoding so I use this function to write the log file:
var log_file = new File(file_path);
log_file.encoding = "UTF8";
log_file.lineFeed = "unix";
log_file.write("\uFEFF" + text_var);
Where text_var is the log string.
When it's written form the ESTK everything is right, when called from the menu it isn't.
It's strange that it also involves alert text innit?