in reply to Re^9: Counting bytes in a Unicode document
in thread Counting bytes in a Unicode document

I think the concern ikegami had is that the string will have crlf as two bytes where the file only had one.
--
A math joke: r = | |csc(θ)|+|sec(θ)| |-| |csc(θ)|-|sec(θ)| |
  • Comment on Re^10: Counting bytes in a Unicode document

Replies are listed 'Best First'.
Re^11: Counting bytes in a Unicode document
by ikegami (Patriarch) on Oct 11, 2024 at 10:03 UTC

    And encoding errors are replaced with U+FFFD, which may have a different length than the original.