Commit 50bdc828 by chengzhuoshen

json转mx报文时支持中文

parent 6595e854
...@@ -252,13 +252,14 @@ public final class XmlEventWriter implements XMLEventWriter { ...@@ -252,13 +252,14 @@ public final class XmlEventWriter implements XMLEventWriter {
sb.append('\"'); sb.append('\"');
break; break;
default: default:
if (arr[i] > '\u007f') { /*if (arr[i] > '\u007f') {
sb.append("&#"); sb.append("&#");
sb.append(Integer.toString(arr[i])); sb.append(Integer.toString(arr[i]));
sb.append(';'); sb.append(';');
} else { } else {
sb.append(arr[i]); sb.append(arr[i]);
} }*/
sb.append(arr[i]);
} }
} }
return sb.toString(); return sb.toString();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment