in reply to Re: DBD::CSV with utf8
in thread DBD::CSV with utf8
Thk you graff,
The UNICODE attribute was described here DBD::SQLite, , but you right, this options is only for SQLite module becouse utf8 is supported by default in DBI, i'm finally detect the problem, that was becouse i was read the CSV file with EditPlus, my default editor for any code, the problem is that it isn't recognize utf-8 in default way, when i was opened the file with other editor, just like you say, it's all ok.
for this problem i was assumed that DBI not recognize it, becouse when i was tried to do the same like you say:
my @values = $sth->fetchrow_array;
Not work, but just like you say, the solution of that was:
my @values = map { decode( "utf8", $_ ) } $sth->fetchrow_array;
This is a big help to me, i'm very greatful
Thk U again, Best Regards.
|
|---|