Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 01/26/20 in all areas

  1. Streams don't know about encoding. You might better do with a TStreamReader. In its FillBuffer method there is some code taking care of your concern (look for ExtraByteCount).
  2. David Heffernan

    Reading large UTF8 encoded file in chunks

    https://stackoverflow.com/questions/56724326/find-longest-utf-8-sequence-without-breaking-multi-byte-sequences Self synchronisation is the keyword. Once you understand that then the code will emerge.
×