asafdav / ng-csv

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

Add encode option #143

Open eugenpodaru opened 8 years ago

eugenpodaru commented 8 years ago

I've added the encode option to allow explicit encoding to the desired charset. I'm using TextEncoder for encoding which is available on Firefox and Chrome, and through this shim on other browsers.

This allows better Excel compatibility. Using '\t' as separator and explicitly encoding to utf-16le with BOM works best in Excel.

fstybel commented 8 years ago

Great job! I need it. @asafdav Can you merge it soon?

360disrupt commented 6 years ago

Is this merged?