News for hackers. Stuff that matters.
Re:Technologies I thought my son would never use by chubot on Sunday April 11, 2021 @03:45PM (#26772862)
That example proves the point. If UTF-8 exists then ASCII will exist.

It could have gone the other way: if UTF-16 was the ONLY encoding, then ASCII would be obsolete. But that didn't happen.

Re:Technologies I thought my son would never use by rusk on Sunday April 11, 2021 @04:29PM (#26773116)
UTF-8 is backwards compatible with ASCII “as she is spake” but not strictly speaking ASCII as any ASCII control characters will break UTF-8. It also breaks any 8-but extensions/code pages. ASCII vs HTML is a bad example though because HTML is used globally and although ASCII is too this is more a historical artefact. It’s not hard to imagine ASCII dying out over the next few years while HTML continues to adapt to every encoding under the sun and pure ASCII becomes used less and less ...
Re:Technologies I thought my son would never use by kevin_thibedeau on Sunday April 11, 2021 @05:08PM (#26773438)
The C1 block isn't ASCII. UTF8 is a perfect superset of 7-bit ASCII.
Re:Technologies I thought my son would never use by rusk on Monday April 12, 2021 @03:23AM (#26776795)
Nope. If you read an ASCII file with control characters in Java you’ll get an exception. Also it won’t work with the 8-bit ASCII variants. Neither are “true Scotsmen” of course, but the point still stands that HTML could yet be more durable.
Re:Technologies I thought my son would never use by chubot on Monday April 12, 2021 @04:49AM (#26777221)
I think you’re confusing Unicode and utf8. java uses Unicode but not utf8; it uses a 2 byte encoding with surrogate pairs by default.

ASCII is utf8, but it’s not utf16. ASCII will be around for as long as utf8 is.

Re:Technologies I thought my son would never use by rusk on Monday April 12, 2021 @06:19AM (#26777810)
I’m almost certain the default encoding for reading/writing files in Java is UTF-8 and similarly for the source files. I don’t think I encounter wide char data much really at all day to day ...