Simple enough to test:
echo(~~"Hello World"); //Echos Hello World
echo(~"Hello World"); //Echos �����ߨ����
echo(~"�����ߨ����"); //Echos @B@B@B@B@B W@B@B@B@B
Why does it work properly for the two Nots directly on top of each other, but not for the copied and pasted string output?
I’d guess there’s probably some data being lost somewhere, but how can I output the data in such a way that if I copy and paste it into code which finds the bitwise Not of it, it will actually work?
This has been bugging me and some others I know for quite a while!
That happens because the char you see has invalid (non existent) code.
For example
Hcode is72.~72is-73.As long as it is not valid char and cannot be shown – it is shown as a square with question mark. Thus it cannot be translated back, because you cannot copy char with code -73 (or to be more precise – your notepad or OS cannot do that)