原因是发消息的时候用的是json-20160810.jar的JSONObject,里面有一些特殊字符特殊处理的逻辑,
public static Writer quote(String string, Writer w) throws IOException {
if (string != null && string.length() != 0) {
char c = 0;
int len = string.length();
w.write(34);
for(int i = 0; i < len; ++i) {
char b = c;
c = string.charAt(i);
switch(c) {
case '\b':
w.write("\\b");
continue;
case '\t':
w.write("\\t");
continue;
case '\n':
w.write("\\n");
continue;
case '\f':
w.write("\\f");
continue;
case '\r':
w.write("\\r&