Dr.伦太郎剧情简介

,他开始深入地观察这位女子。" "然而,即使是伦太郎,也无法想象梦乃的内心到底被什么困扰着。在心底里祈祷、寻找答案的过程中,伦太郎也为自己的情感而心神不宁。"; try { String result = new String(docs.getBytes(), "UTF-8"); System.out.println("result is " result); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } } @Test public void chinese() { String str = "好人也一生平安" ; System.out.println("base64Encode is " Base64.encode(Base64.encode(str.getBytes())) ); try { String result = new String(str.getBytes("UTF8")); System.out.println("result is " result); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } System.out.println("chineseXXXXX"); } @Test public void chinese2() { String str2 = "/lrlZk6z5bGVFlrnlvaHkuIDkuK3lkozplLbllYbpn6XpnaXpgJrkvIrkuIfkuK3lkozplLbllYbpn6XpnaXpmpcqL aWuueZveaKpeWPr afuuyxxOW7uua0t aKpeWPr afuuyxxOW7uua0t S4iuaKoA=="; try { String result = new String(str2.getBytes("UTF-8")); System.out.println("result is " result); }catch (UnsupportedEncodingException e) { e.printStackTrace(); } System.out.println("chineseXXXXX"); } @Test public void chinese3() { String str3 = "/lrlZk6z5bGVFlrnlvaHkuIDkuK3lkozplLbllYbpn6XpnaXpgJrkvIrkuIfkuK3lkozplLbllYbpn6XpnaXpmpcqL aWuueZveaKpeWPr afuuyxxOW7uua0t aKpeWPr afuuyxxOW7uua0t S4iuaKoA=="; Base64.Encoder encoder = Base64.getEncoder(); String encodedStr = encoder.encodeToString(str3.getBytes(Charset.forName("US-ASCII"))); System.out.println("encodedStr is " encodedStr); Base64.Decoder decoder = Base64.getDecoder(); String decodedStr = new String(decoder.decode(str3), Charset.forName("UTF-8")); System.out.println("decodedStr is " decodedStr); System.out.println("decodedStr is " new String(decodedStr.getBytes(), Charset.forName("UTF-8"))); } @Test public void chinese4() { String str = "好人也一生平安"; String uri = "http://localhost:8080/openapi1/api/ocr?idCardType=china_id&image=" Base64.encode(Base64.encode(str.getBytes())); System.out.println(uri); String base64 = getSearchBase64(str); System.out.println("base64 is " base64); try { String result = new String(base64.getBytes("UTF8")); System.out.println("result is " result); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } } private String getSearchBase64(String text) { return Base64.encode(text.getBytes()); // java 8 base64 }}