Your browser does not support the audio element.

android —— 汉子的unicode编码转Utf-8编码

    public void getCountry(){
        try {
            String s1 = "\u5e7f\u5c9b\u4e4b\u604b.mp3";
            byte[] converttoBytes = s1.getBytes("UTF-8");
            String s2 = new String(converttoBytes, "UTF-8");
            System.out.println(s2);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

 

posted @ 2015-11-17 14:35  shoneworn  阅读(1667)  评论(0)    收藏  举报