FriendsOfCake/cakephp-csvview

Safary issue with generated CSV

dereuromark opened this issue · 2 comments

chrome and FF work nicely, but on safari the content is scrambled somehow:

bplist00��_��WebMainResource������	
�_��WebResourceMIMEType_��WebResourceTextEncodingName^WebResourceURL_��WebResourceFrameName_��WebResourceDataXtext/csvUUTF-8_�:https://domain/controller/in-progress.csvPO�On<html><head></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">"Issue","Group",Title,"Status",Priority,Link,Created,Modified
[payload]
</pre></body></html>\00�\00�\00�\00(\00>\00\\00k\00�\00�\00�\00£\00à\00á\00\00\00\00\00\00��\00\00\00\00\00\00\00
\00\00\00\00\00\00\00\00\00\00\00\00\00\00PS

[payload] is the actual rows of data I removed for simplicity

the other browsers also auto trigger download, this one doesnt.
Is this a known issue to others?

Thats strange, what happens when you curl the data? We might need to set special headers for safari to not garble it.

It wasnt my PC, but a co worker. As such I cant reproduce easily right now.
I will close it for the time being until someone can produce more debug info etc.