Help with fastercsv

Hi,

I have this line in a csv file ==> Rüti,CH
and Fastercsv takes them as one and not as separate strings.
Other entries are ok except for this.

Any help would be appreciated.

Thanks,
franee

Hi Francis,

Francis S. wrote:

I have this line in a csv file ==> Rüti,CH
and Fastercsv takes them as one and not
as separate strings.

Have you tried eliminating the punctuation? Just to see if it would
make a
difference?

Bill

Bill W. wrote:

Hi Francis,

Francis S. wrote:

I have this line in a csv file ==> R�ti,CH
and Fastercsv takes them as one and not
as separate strings.

Have you tried eliminating the punctuation? Just to see if it would
make a
difference?

Bill

Hi,

sorry for the late update.

I tried removing the unicode character and it works fine.

Francis S. wrote:

Hi,

I have this line in a csv file ==> Rüti,CH
and Fastercsv takes them as one and not as separate strings.
Other entries are ok except for this.

Are you sure this is the problem?

http://pastie.caboo.se/39636

If you want to see the character as it was, you can set Ruby’s $KCODE
variable before processing:

http://pastie.textmate.org/39639

Hope this helps.

James Edward G. II

James Edward G. II wrote:

Francis S. wrote:

Hi,

I have this line in a csv file ==> Rüti,CH
and Fastercsv takes them as one and not as separate strings.
Other entries are ok except for this.

Are you sure this is the problem?

Parked at Loopia

If you want to see the character as it was, you can set Ruby’s $KCODE
variable before processing:

http://pastie.textmate.org/39639

Hope this helps.

James Edward G. II

Thanks:) it was the file not being encoded in utf8 that was the source
of the problem. It took awhile to figure out since it was correctly
displaying unicode characters even with the ascii setting in notepad++.

Works smoothly now:) thanks:)