Filter Iterator and Text Replace Bug

Hi,

I found a bug which doesn't occur in FB6, only in 7.  This only seems to happen when Text Replace is combined with the File Iterator. I have attached sample projects which will demonstrate some strange characters get prepended in FB7.  If you diff the FB6 folder vs FB7 folder you can see.

Thanks,

-Nelson

TextReplaceBug.zip (45.526 KB)

Hi Nelson

It looks like for some reason the encoding of this file is being changed from ANSI to UTF8. Usually the Text Find Replace action determines the encoding of the file and maintains the encoding when writing the replacement text back to the file, for some reason the encoding detection is failing in this case.

I was able to see this using the project you provided but I am unable to reproduce this when I create my own project which performs exactly the same steps (even using the file you provided in the source directory). Have you seen this issue occurring in other places in your project or is it just this specific set of files?

I don’t believe the File Iterator is a contributing factor in this scenario because it does not make any changes to the files.

Regards,
Steve

Scratch what Steve said, we just reproduced and fixed it here. The bug is in the Text Find/Replace action but it only shows up when run multiple times (like under an iterator), it was not resetting an encoding property before reading the file. We’ll have a new build with the fix available shortly.