摘要: 今天在用android 的URL url = new URL("http://www.my400800.cn &search=400电话 "); HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();时传递到服务端的中文字符时乱码,最后是将要发送的字符经过编号就可以了代码修改如下:URL url = new URL("http://www.my400800.cn &search="+java.net.URLEncoder.encode( 阅读全文
posted @ 2011-09-29 17:24 ljlxyf 阅读(1435) 评论(0) 推荐(0)
摘要: adv_sdcard_image_upload.xml<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_p 阅读全文
posted @ 2011-09-29 14:46 ljlxyf 阅读(675) 评论(0) 推荐(0)