asafdav / ng-csv

Simple directive that turns arrays and objects into downloadable CSV files
MIT License
573 stars 215 forks source link

Can't encode to shift_jis #92

Open tanakaworld opened 9 years ago

tanakaworld commented 9 years ago

Hey.

I tried following code, but the charset of test.csv is not 'shift_jis' but 'utf-8'.

button type="button" ng-csv="getCsvData()" filename="test.csv" charset="shift_jis" add-bom="true"

I want to open csv file by Microsoft Excel. Is it possible setting 'shift_jis' to charaset?

asafdav commented 9 years ago

Can you please share an example (plunker, jsfiddle or similar) ?

tanakaworld commented 9 years ago

Hi, @asafdav

please check this. http://jsfiddle.net/tanaka_yutaro/jeb5mqfs/20/