in reply to Re^9: Counting bytes in a Unicode documentin thread Counting bytes in a Unicode document
And encoding errors are replaced with U+FFFD, which may have a different length than the original.