My for each row in IF is not working

Check this thread

usually, those ascii characters are utf-8 encoded, so that you need to encode before sending it to the activity