nozavroni / csvelte

🕺🏻 CSV and Tabular Data library for PHP
http://phpcsv.com/
Other
6 stars 0 forks source link

character encoding support? #4

Open deni-zen opened 8 years ago

deni-zen commented 8 years ago

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

deni-zen commented 8 years ago
deni-zen commented 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.

deni-zen commented 8 years ago

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.