Skip to content
This repository has been archived by the owner on Jan 9, 2018. It is now read-only.

custom name to csv file? #21

Open
navsaini53 opened this issue Dec 26, 2015 · 2 comments
Open

custom name to csv file? #21

navsaini53 opened this issue Dec 26, 2015 · 2 comments

Comments

@navsaini53
Copy link

No description provided.

@JadisInteractive
Copy link

JadisInteractive commented Nov 15, 2016

I'm sure you've probably already figured it out, but before sending the data, set the header and content-type. This is a snippet of how I accomplished it:

res.setHeader('Content-disposition', 'attachment; filename=organization-report.csv');
res.set('Content-Type', 'text/csv');

I hope that helps.

@waikchiu5
Copy link

how about the Unicode character?
I stored some Chinese character in DB. When downloading the CSV and open with Excel. All the character will display some unexpected character like "你好呀,我係星展銀行嘅智能å°�å"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants