in reply to Re^4: CSV_XS and UTF8 strings
in thread CSV_XS and UTF8 strings
You obviously do not read my replies, or you do not understand them (at all).
Install Text::CSV_XS from this archive, and call your constructor as:
my $csv = text::CSV_XS->new ({ binary => 1, auto_diag => 1, quote_space => 0, quote_binary => 0, });
and I am sure you gat a long way towards your (wrong) expectation of what CSV should be.
What you describe as wrong is expected and correct behavior. The fact that it doesn't look like the original is quite something else. Text::CSV_XS and Text::CSV offer a plethora of options and attributes to make it (more) behave as end-users expect or want it to behave, but the default is correct, even if it does not produce exactly what the source happened to be.
If it still doesn't fit your needs, and my new attribute is still unsatisfactory for your idea of correctness, I suppose you will have to look for handcrafted solutions and not use Text::CSV_XS.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: CSV_XS and UTF8 strings
by beerman (Novice) on Oct 19, 2011 at 21:41 UTC | |
by Tux (Canon) on Oct 20, 2011 at 06:58 UTC |