问题:xml数据里面含有反斜杠的数据,Load到mysql中,\消失
解决方法:将转义符"\"增加为"\\",代码如下:
假如字符串str含有反斜杠,
则
str=str.replaceAll("\\\\", "\\\\\\\\");
结果:成功插入到mysql当中!
问题:xml数据里面含有反斜杠的数据,Load到mysql中,\消失
str=str.replaceAll("\\\\", "\\\\\\\\");
相关文章: