BufferedReader br = new BufferedReader(new InputStreamReader(System.in,"UTF-8"));System.out.print("请输入学生所在地:");String location = new String(br.readLine().getBytes("GBK"),"UTF-8");System.out.println(location);