i have the following code:
int zeichen = System.in.read();
System.out.println(zeichen);
The documentation for read() says: Reads the next byte of data from the input stream. The value byte is returned as an int in the range 0 to 255.
So for ASCII chars it converts the char into its corresponding value, but how does it convert chars that are out of the ASCII charset?
For example: £ or ₩ is converted to 239 and 丌 is converted to 228
How does this conversion happen and how can i "calculate" the coresponding value for each char?