summaryrefslogtreecommitdiff
path: root/src/test/java/TestUFT.java
blob: b0cba092eb7b0cd7920e36e71d587c8417f38ed0 (plain)
1
2
3
4
5
6
7
8
9
10
import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;

public class TestUFT {
    public static void main(String[] args) throws UnsupportedEncodingException {
     String str = "�й�";
     System.out.println(new String( str.getBytes("GBK") , StandardCharsets.UTF_8));
    }

}