【发布时间】:2012-06-09 23:01:47
【问题描述】:
我正在使用 OPEN-OFFICE 工作并保存 CSV。我也在使用逗号分隔符和'"'。但是,在保存 CSV 时,所有数字都没有被封装。如何强制 Open-Office 将数字视为文本并将它们也封装起来。示例:
"store","website","attribute_set","type","sku","name","price","categories","description","qty","sizet","is_in_stock","status","visibility","tax_class_id"
"admin","base","test","simple","T010013-012","Test12","12","test/test","Desc12",12,"S","1","Enabled","Catalog, Search","Taxable Goods"
"admin","base","test","simple","T010013-013","Test13","13","test/test","Desc13",13,"M","1","Enabled","Catalog, Search","Taxable Goods"
"admin","base","test","simple","T010013-014","Test14","14","test/test","Desc14",14,"L","1","Enabled","Catalog, Search","Taxable Goods"
"admin","base","test","simple","T010013-015","Test15","15","test/test","Desc15",15,"XL","1","Enabled","Catalog, Search","Taxable Goods"
"admin","base","test","simple","T010013-016","Test16","16","test/test","Desc16",16,"XXL","1","Enabled","Catalog, Search","Taxable Goods"
"admin","base","test","configurable","T010013","TestParent","5","test/test","DescParent","30","","1","Enabled","Catalog, Search","Taxable Goods"
感谢您的帮助。 PS:我正在为 Magento 使用 MAGMI 脚本。上传产品
【问题讨论】:
-
请注意,CSV 不需要引用任何不包含逗号或换行符的内容。您可以从示例中删除所有引号,它仍然是有效的 CSV。
标签: csv numbers delimiter openoffice-calc magmi