String str = "不支持此城市!";
String son = "<?xml version=\"1.0\" encoding=\"utf-8\" ?><root><weather city="
+ str
+ " time=\"2010-01-25\" ffcaddition=\"\" today=\"多云@高温5 ℃低温-13 ℃@风力微风 小于3 级\" tomorrow=\"多云@高温3 ℃低温-16 ℃@风力微风 小于3 级\" day-after-tomorrow=\"晴@高温5 ℃低温-13 ℃@风力微风 小于3 级\" /><wm_life content=\"\"/></root>";response.setContentLength(son.length()); //一定要
/*
*获取长度
*/用response写出去 不乱码 网页源文件 能查看到son 的内容。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货