Reputation: 4606
I am trying to learn encoding, so please bear with me.
Using an online encoding tool such as this one, I can see that the data
a
b
can be represented
in Ascii/ANSI as:
a
b
in Hex as:
610d0a62
in base64 as:
YQ0KYg==
But in Java if I need to print this data to the screen I need to use the command
System.out.println("a\r\nb");
What form of encoding is \r\n?
In other words, is it fair to say that \r\n is the keyboard representation for the ascii
a
b
Upvotes: 1
Views: 68