web
文章平均质量分 67
FewMore
这个作者很懒,什么都没留下…
展开
-
httpclient传json字符串raw形式,调post
public static String result; public static void httpTest() throws ClientProtocolException, IOException { String json = "{\"appId\":\"ddd\",\"usrId\":\"ddd\",\"latitude\":\"123\",\"longitude\":\原创 2016-04-19 10:20:19 · 3852 阅读 · 0 评论 -
bufferReader 流读最后一行问题,中文乱码问题
最近要做一个编辑器。 遇到以下问题,第一是换行问题,这个我直接在后台每行结尾加上了前台html需要的换行符。 第二是bufferReader总会读取最后一行的内容,从源码可以看出 while (true) { pos = end; if (fillBuf() == -1) { // If there's no more input, return what原创 2016-10-08 15:30:12 · 2032 阅读 · 0 评论