import org.apache.commons.codec.net.BCodec;
import org.apache.commons.codec.net.URLCodec;
String txt =
"SessionID=Fmzng2zjg7!-1394951627&SPID=830502&ServiceID=1XBZ040008";
BCodec bc=new BCodec();
URLCodec uc=new URLCodec();
String ntxt = bc.encode(txt);
//代码片断 这个包是做转码得,实现了很多转码规范
import org.apache.commons.codec.net.URLCodec;
String txt =
"SessionID=Fmzng2zjg7!-1394951627&SPID=830502&ServiceID=1XBZ040008";
BCodec bc=new BCodec();
URLCodec uc=new URLCodec();
String ntxt = bc.encode(txt);
//代码片断 这个包是做转码得,实现了很多转码规范
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货