转义符 \ 加上引号 \"
<?xml version="1.0"encoding="GBK"?>
String temp = "<?xml version=" + "\"" + "1.0" + "\"" + " encoding=" + "\"" + "GBK" + "\"" + "?>";
转义符 \ 加上引号 \"
<?xml version="1.0"encoding="GBK"?>
String temp = "<?xml version=" + "\"" + "1.0" + "\"" + " encoding=" + "\"" + "GBK" + "\"" + "?>";
原文:https://www.cnblogs.com/taiguyiba/p/8383539.html