Re^2: Calculated position incorrect when using regex in text file that also contains binary infoby geertvc (Sexton)
|on Jun 17, 2020 at 05:35 UTC||Need Help??|
I just tried your code on a Windows 10 machine and here it fails. Result:
Even the "got" values (calculated based on the Windows OS) are not correct when checking the location of the items in a text editor (I'm using NPP as text editor) in Windows. It should be 923 and 930 for the 4th object (as opposed to 1139 and 1146 in your script result).
So, "a" conclusion might be that Windows (once again) differs from Linux in the way files are handled.
Would there be a need to open the file with a specific encoding?