Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The same text has different byte size

I have simple txt file, read this content, do with them some operation (for example encode and decode) and save result in file. When I compare its two files in beyond compare I see that content the same. But sizes of files are different. Why? And how I can resolve this problem?

like image 908
Ray Avatar asked May 30 '26 10:05

Ray


1 Answers

There can be many reasons for that, for example different encoding, or maybe one is using \r\n and the other uses only \n.

Use Hex Compare in BeyondCompare to find out exactly.

like image 161
Tzach Avatar answered May 31 '26 22:05

Tzach



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!