公告:1.《微信硬件蓝牙开发教程03版》、《微信jsapi开发教程02版》筹备中... 2.友情交换/给本站留言

案例归档:  微信公众号回复用户qq表情-难过—实现代码

String respMessage = "<xml>"
                +"<ToUserName><![CDATA["+fromUserName+"]]></ToUserName>"
                +"<FromUserName><![CDATA["+toUserName+"]]></FromUserName>"
                +"<CreateTime>12345678</CreateTime>"
                +"<MsgType><![CDATA[text]]></MsgType>"
                +"<Content><![CDATA[我好难过---/难过 /::(]]></Content>"
                +"</xml>";
        // 响应回复消息
                PrintWriter out = response.getWriter();
                out.print(respMessage);
                out.close();