mholt / PapaParse

Fast and powerful CSV (delimited text) parser that gracefully handles large files and malformed input
http://PapaParse.com
MIT License
12.47k stars 1.14k forks source link

Papa Unparse Delimiter and QuoteChar not working together #1013

Closed fsmuzawar closed 1 year ago

fsmuzawar commented 1 year ago

Hello everyone,

when I try to unparse using Papa.unparse(data, config) and below config -> the function completely ignores the quoteChar specified and generates the output asJhon, Doe, 32 years instead of "Jhon", "Doe", "32 years"

const config = {
      delimeter: ',',
      quoteChar: '"',
      escapeChar: '"',
      dynamicTyping: false,
      header: false,

 };

const data = {firstname:"Jhon", lastname:"Doe", age:"32 years"}

is there anyway to resolve this ?

fsmuzawar commented 1 year ago

sorry, the answer is there in the documentation -> quotes: true,