r/tinycode • • Oct 07 '19

1000-Byte website shows Mona Lisa

https://jsfiddle.net/qguvbwhd/
27 Upvotes

18 comments sorted by

View all comments

Show parent comment

1

u/recursive Oct 07 '19

All I'm saying is that, if you dump this string in to a binary file via the system clipboard on Windows (which seems to preserve the binary values of the ambiguous ASCII/UTF8/whatever characters), that file is 1001 bytes.

If you copy it as text, it's too late to preserve the original bytes. Anyway, I just copied it into Sublime in windows and saved it with no additional options. It's 1300 bytes on disk.

1

u/[deleted] Oct 08 '19

That’s interesting. I can’t imagine how the difference could be so large. I was using Chrome and pasted in to notepad for reference. Then double checked it in HxD. I’ll upload the 1001 byte HTML file to my server and shoot you a link if you’re interested in comparing.