我应该使用什么MIME类型的CSV? [英] What MIME type should I use for CSV?
问题描述
我看到 application / csv
使用,还有 text / csv
。
有什么区别?有区别吗?只要请求匹配可用的东西,它是否重要?是否可以互换?
What's the difference? Is there a difference? Does it matter which as long as the request matches something that's available? Are they interchangeable?
推荐答案
RFC 7111
a href =http://tools.ietf.org/html/rfc7111 =noreferrer> RFC ,它覆盖它并说使用 text / csv
。
RFC 7111
There is an RFC which covers it and says to use text/csv
.
此RFC更新RFC 4180。
This RFC updates RFC 4180.
最近我发现了一个用于Excel的显式mimetype。
Recently I discovered an explicit mimetype for Excel.
href =http://mimeapplication.net/vnd-ms-excel =noreferrer> mimetypes数据库
From the mimetypes database
MIME类型应用程序/ vnd.ms-excel用于表示Microsoft Excel电子表格或Microsoft Excel模板的存在
。该MIME类型的
类别是application。
The MIME type application/vnd.ms-excel is used to denote the presence of a Microsoft Excel spreadsheet or Microsoft Excel template. The category for this MIME type is "application".
同一个网站有更多的信息 text / csv
键入此处
The same site has more information on the text/csv
type here
这篇关于我应该使用什么MIME类型的CSV?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!