I want to convert the character cor from Shift-JIS to UTF-8, but it does not work as shown below.
I would appreciate it if you could show me how to convert to UTF-8.
String str = "���[�_�u���R�[�h,�������킩��₷���B"
byte[] bytes1 = str.getBytes("SJIS");
String newstr = new String(bytes1,"UTF-8");
System.out.println(newstr);
=> ???[?_?u???R?[?h,??????????????B
I'm using Java 17.