2 ms·
But wherein does that meaning lie? If the two strings represent the same text, you can't tell the difference between them, because there is none. (I guess tech
by dghf 11y ago
But wherein does that meaning lie? If the two strings represent the same text, you can't tell the difference between them, because there is none.
(I guess technically you can't tell the difference between an ASCII string and a string of random 8-bit numbers in the range 0 <= x <= 127, but if when represented as ASCII characters those numbers are meaningful -- comprehensible English, for example -- the odds are good it's the former not the latter.)
- technofire 11y agoI think what he's getting at is that whatever program is reading the text must be prepared to read UTF-8 and not just ASCII. Sure, the underlying data is the same, but the data type is not the same; analogously, a byte with the decimal value of 65 might be the number 65 if cast as an integer, but might be the character 'A' if cast as a char.