Reply to Re: Export to csv

Your name:

Reply:


Posted by John Dunlop on 10/07/05 20:43

R. Rajesh Jeba Anbiah wrote:

> chotiwallah wrote:
>
> > header("Content-type: text/plain");
>
> IIRC, the correct Content-type for CSV is "text/x-csv".

I was going to make a similar remark but you beat me to it.

text/x-csv is common, for sure, but it isn't and can't be registered, it
being a 'private' type (indicated by the 'x-' prefix). I would say
text/x-csv is more useful at the moment in that the likelihood of its
being interpreted as signifying CSV is greater (at least in my browser).

I don't know how far text/plain is meant to stretch: at what stage do
things start becoming 'formatting commands or directives' (the wording of
RFC2046)? does this very post - the one you're reading - not contain
'formatting commands' in the shape of those quote markers >'s?

text/x-csv would be my choice too though.

[why does TSV have a registered type but not CSV?]

how you doin?

--
Jock

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация