我正在从我的网络服务器生成csv下载并且为了安全起见,我已用双引号括起每个字段。
即
"Field1","Field2","Field3","Field4"
"row1_field1","row1_field2","row1_field3","row1_field4"
"row2_field1","row2_field2","row2_field3","row2_field4"
问题是当在Excel中打开文件时,它不会删除所有引号...因此,某些字段显示为:row1_field1而其他字段显示为“row1_field2”
我没有做什么来确保excel剥离所有周围的引号?
答案 0 :(得分:5)
确保逗号周围没有空格。所以以下内容应该有效:
"row1_field1","row1_field2","row1_field3","row1_field4"
"row2_field1","row2_field2","row2_field3","row2_field4"
但这会出现报价:
"row1_field1", "row1_field2", "row1_field3", "row1_field4"
"row2_field1", "row2_field2", "row2_field3", "row2_field4"