On Jan 23, 2011, at 9:21 AM, Dot Baiki wrote:

> This way seems to be right, but now somehow the :header_converters =3D>
> :symbol is not working anymore. This is the header line from the CSV
> file:
>=20
> Emp No.;AC-No.;No.;Name;Auto-Assign;Date;Timetable;On duty;Off
> duty;Clock In;Clock Out;Normal;Real time;Late;Early;Absent;OT =
Time;Work
> Time;Exception;Must C/In;Must
> =
C/Out;Department;NDays;WeekEnd;Holiday;ATT_Time;NDays_OT;WeekEnd_OT;Holida=
y_OT
>=20
> But since I use read() (even if I use header_converters =3D> :symbol) =
the
> header line is not converted. I really don't understand it anymore. =
This
> is now my header line:
>=20
> ["Emp No.", "AC-No.", "No.", "Name", "Auto-Assign", "Date", =
"Timetable",
> "On duty", "Off duty", "Clock In", "Clock Out", "Normal", "Real time",
> "Late", "Early", "Absent", "OT Time", "Work Time", "Exception", "Must
> C/In", "Must C/Out", "Department", "NDays", "WeekEnd", "Holiday",
> "ATT_Time", "NDays_OT", "WeekEnd_OT", "Holiday_OT"]
>=20
> Is there no way to say during import/conversion that column "Emp No."
> shall be untouched (expect the header conversion)?
>=20
> This is what I use now:
> csv_data =3D FCSV.read(input_file, :col_sep =3D> ';', :skip_blanks =3D> =
true,
> :header_converters =3D> :symbol)

The bug is that you dropped :headers =3D> true.  Add that back and you =
are all set.

James Edward Gray II=