What happens if range string (in a loop) encounters an invalid UTF-8 byte
sequence?
For strings, the "range" clause iterates over the Unicode code points in the string. On successive iterations, the index variable will be the index of the first byte of successive UTF-8-encoded code points in the string, and the second variable, of typeint, will be the value of the corresponding code point. If the iteration encounters an invalid UTF-8 sequence, the second variable will be0xFFFD, the Unicode replacement character, and the next iteration will advance a single byte in the string.