You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A. dst=String.fromBytes(src,"GBK").getBytes("UTF-8")
B. dst=new String(src,"GBK").getBytes("UTF-8")
C. dst=new String("GBK",src).getBytes()
D. dst=String.encode(String.decode(src,"GBK")),"UTF-8" )
你的回答D 是错误的,估计是B
The text was updated successfully, but these errors were encountered:
下面哪段程序能够正确的实现了GBK编码字节流到UTF-8编码字节流的转换: byte[] src,dst;(2分)
A. dst=String.fromBytes(src,"GBK").getBytes("UTF-8")
B. dst=new String(src,"GBK").getBytes("UTF-8")
C. dst=new String("GBK",src).getBytes()
D. dst=String.encode(String.decode(src,"GBK")),"UTF-8" )
你的回答D 是错误的,估计是B
The text was updated successfully, but these errors were encountered: