angeliquekom / vue-json-to-csv

A Vue.js 2 component for transform and download a json in csv format
MIT License
35 stars 9 forks source link

# within JSON Object seems stops conversion and produces incomplete csv file #7

Closed tim4vt closed 5 years ago

tim4vt commented 5 years ago

Having a # within the JSON Object I am converting causes the conversion to stop immediately and gives me a incomplete CSV file

As example I have added a # in the task_description within the JSON Object and you can see in the csv file the conversion stopped there. Please see the following sandbox to reproduce the error: https://codesandbox.io/embed/8koplpy6q0

angeliquekom commented 5 years ago

Thanks @tim4vt! Good catch! The issue was occured because I was using encodeURI which blocks special characters. I replaced it with encodeURIComponent. I releaded version 1.1.8 for fixing the bug.