I'm making an encryption software, and so far everything is great. You enter your message and my software selects 26 unicode characters in order from a random spot in the unicode table and switches each letter with its cooresponding unicode character. The problem is, however, that when I paste the encoded message (unicode characters) into the console, Java spits back different characters each time.
The following code yields this as a result:
Scanner sc = new Scanner(System.in);
String msg = sc.next();
System.out.println(msg);
ⶫⶭ (entered to equal msg)
â¶«â¶ (given back by Java in the print statement)