In case of "bug" no 2:
==> you need to change a code.
Current code replaces text.contents which removes formats as well.
You need to use text.changeGrep() method to reach a replacement goal and keep format.
This has nothing in common with ID Server operations, in my opinion.
for the first "bug", i looks like a problem with your code. Somewhere you are trying to set a utf-8 encoding. Delete that line of code and RETYPE-it (no copy paste).
It is not true at all. this bugs happens randomly not always.
Message was edited by: albanx
Where? I do not do that in any place of the script.
What do you mean with "Delete that line of code and RETYPE-it (no copy paste)."?
We tried the changeGrep and we got the same results with the same problem: