"Everything is easy - once you know how.."
"Everything is easy - once you know how.."
Stuart Lord wrote:So for example the BASIC GO TO command was ASCII code 236, etc.. Of course with the advent of Unicode, this code will generate something different, when put into a char in Java...
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Wikipedia - ZX Spectrum character setvariant of ASCII
"Everything is easy - once you know how.."
"Everything is easy - once you know how.."
"Everything is easy - once you know how.."
"Everything is easy - once you know how.."
Stuart Lord wrote:As for one liners - I would say that is more obvious, as to what the computer is doing, over against , but then maybe others would like to give their opinions...
"Everything is easy - once you know how.."
yes, I agree that the code:And a minor point: what they wrote will work for all Unicode characters.
"Everything is easy - once you know how.."
Stuart Lord wrote:Incidentally, I notice that the old ASCII value for a £ - 96 - is now 136 or A3 in Unicode.
Wikipedia wrote:As computer technology spread throughout the world, different standards bodies and corporations developed many variations of ASCII to facilitate the expression of non-English languages that used Roman-based alphabets. One could class some of these variations as "ASCII extensions", although some misuse that term to represent all variants, including those that do not preserve ASCII's character-map in the 7-bit range. Furthermore, the ASCII extensions have also been mislabelled as ASCII.
"Everything is easy - once you know how.."
Stuart Lord wrote:
Dave - thanks for your further help. So the lesson is: if you want to display a hex value as a char, then it must be prefixed by 0x.
"Everything is easy - once you know how.."
Evacuate the building! Here, take this tiny ad with you:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|