Anonymous
public text v1 · immutableScanner s =new java.util.Scanner(System.in);
String str = s.nextLine();
byte[] utf8Bytes = str.getBytes("UTF8");
String roundTrip = new String(utf8Bytes, "ASCII");
//str.
System.out.println(str+"\n==");
System.out.println(roundTrip);
/*
on input Curaçao=>
Curaçao
==
Cura??ao
*/