Guest User

Untitled

a guest
Jul 26th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. Java BufferedReader returning weird characters
  2. clientoutput.write("Please enter your username: ".getBytes("UTF-8"));
  3. clientoutput.flush();
  4.  
  5. String username = clientinput.readLine();
  6. out("Client " + clientip + " logged in as " + username);
  7.  
  8. String askforpass = "Please enter the password for " + username + ": ";
  9. clientoutput.write(askforpass.getBytes());
  10. clientoutput.flush();
  11.  
  12. String password = clientinput.readLine();
  13.  
  14. out(password);
  15.  
  16. Client connected with the IP /127.0.0.1
  17. Client /127.0.0.1 logged in as ÿûÿû ÿûÿû'ÿýÿûÿýdcole ÿþÿþ ÿþÿþ'ÿütest
Add Comment
Please, Sign In to add comment