How and when is keyboard data encoded? I just want to know in basic terms the process from the keyboard to the application; when is the data from the keyboard encoded? Is it encoded by the keyboard processor, by the operating system, by the application?
Just another question on the side: if the keyboard data is encoded by the operating system, what is the default encoding of Windows, MacOS and Linux? Do any of them use UTF-8?