wxh512(狮子) 的答案俺看不懂啊
betterjonah(jonah) 的语句俺用了之后编译时报错:
sms.java:5: unreported exception java.io.UnsupportedEncodingException; must be caught or declared to be thrown
改成
csms.sendmsg("13900000000",new String("测试123456789".getBytes("ISO-8859-1"),"GBK"));
结果编译时报告:
sms.java:5: unreported exception java.io.UnsupportedEncodingException; must be caught or declared to be thrown
csms.sendmsg("13900000000",new String("测试123456789".getBytes("ISO-8859-1"),"GBK"));
^
sms.java:5: unreported exception java.io.UnsupportedEncodingException; must be caught or declared to be thrown
csms.sendmsg("13900000000",new String("测试123456789".getBytes("ISO-8859-1"),"GBK"));
^
2 errors