我用insert向mysql数据库插入了如下的数据:
for(int i=0;i<dst.length;i++){ system.out.println(dst[i]); }
成功后,我在mysql 中的text型字字段中,编码类型是utf8_unicode_ci
是这样存放的
for(int i=0;i<dst.length;i++){ system.out.println(dst[i]); }
,我的本意是把此偌,显示成文本,(并不是执行此代码,只是显示 一下。)结果, php当成 for循环了,显示的都乱了。
PS
若向数据库中插入{ system.out.println(dst[i]); }
则读取,显示正常。
若向DB中插入for(int i=0;i<dst.length;i++){ system.out.println(dst[i]); }
则,不正常。如何办?