Open deni-zen opened 8 years ago
I was playing around with potential API for character encoding support and I had an idea... maybe the Flavor class should have an option for "charEncoding" along with all the other shit it has that describes a CSV file. It might look like...
$flavor = new CSVelte\Flavor([
'quoteChar' => '"',
'escapeChar' => '\\',
'charEncoding' => Encoding::UTF8
])
But I don't know. Because one of the things I liked about the "flavor" concept was the ability to create concrete "flavors" for like... "excel". This would make me have to have "excel-utf8", "excel-latin-blabla", etc.
Look at your gmail at the "CSV" label. There is an e-mail from somebody from Finland who needs Scandinavian letters to work... write tests for his use case.
I don't know that much about character encoding but this is a great project to learn... make sure this library allows the end user to convert between a variety of character encodings