2 ms·
Did they see the encoding mistake before they showed it? Because I wonder how difficult it would be to create a string that says something innocuous in UTF-8 (
by pavel_lishin 15y ago
Did they see the encoding mistake before they showed it?
Because I wonder how difficult it would be to create a string that says something innocuous in UTF-8 (e.g., "When will you bring the troops home #AskObama") but in ASCII would read as something totally different, but legible (e.g., "the secret priests would take great Cthulhu from his tomb to revive His subjects and resume his rule of earth...")
- StavrosK 15y agoI imagine quite difficult, as each character triplet when decoded with Windows-1252 would have to be one letter in Unicode, and those would have to actually form words. You'd be restricted to maybe 30 triplets.
- irahul 15y agoIf you are talking about ASCII(7 bit ascii and not extended ascii), then it can't happen - the encoding is same for 0-127.