# Help with fastercsv

**URL:** <https://www.ruby-forum.com/t/help-with-fastercsv/83822>\
**Category:** Rails\
**Created:** [January 30, 2007, 12:19am UTC](https://www.ruby-forum.com/t/help-with-fastercsv/83822 "2007-01-30T00:19:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![franee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/b5a626/32.png) [@franee](https://www.ruby-forum.com/u/franee)\
**Post date:** [January 30, 2007, 12:19am UTC](https://www.ruby-forum.com/t/help-with-fastercsv/83822/1 "2007-01-30T00:19:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![franee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/b5a626/32.png) [@franee](https://www.ruby-forum.com/u/franee)\
**Post date:** [January 30, 2007, 2:20am UTC](https://www.ruby-forum.com/t/help-with-fastercsv/83822/2 "2007-01-30T02:20:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![franee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/b5a626/32.png) [@franee](https://www.ruby-forum.com/u/franee)\
**Post date:** [February 1, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/help-with-fastercsv/83822/3 "2007-02-01T21:52:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![franee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/b5a626/32.png) [@franee](https://www.ruby-forum.com/u/franee)\
**Post date:** [February 12, 2007, 3:49am UTC](https://www.ruby-forum.com/t/help-with-fastercsv/83822/4 "2007-02-12T03:49:17Z")

</div>

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](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](http://pastie.textmate.org/39639)

Hope this helps.

James Edward G. II

---

<div class="post-metadata">

**Author:** ![franee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/b5a626/32.png) [@franee](https://www.ruby-forum.com/u/franee)\
**Post date:** [February 12, 2007, 12:29pm UTC](https://www.ruby-forum.com/t/help-with-fastercsv/83822/5 "2007-02-12T12:29:36Z")

</div>

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](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](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:)
