Aaah, got it. Thanks for the hint. The encoding of the file is ASCII-8BIT and ruby 1.9 tries to convert it to UTF-8. Funny this error doesn't occur when using ruby 1.8 :-(
On Wed, Mar 9, 2011 at 12:11 AM, James Healy <[email protected]> wrote: > Are you trying to write a string into a file or IO stream by any chance? > > James > > On 9 March 2011 00:05, Joshua Partogi <[email protected]> wrote: > > Hi there, > > > > I am getting this error from ruby 1.9: \xFF" from ASCII-8BIT to UTF-8 > > > > Does anybody know or have seen that error before and what I should be > > looking into in order to fix the problem? > > > > Any help is greatly appreciated. > > > > Kind regards, > > Joshua. > > > > -- > > http://twitter.com/jpartogi > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby or Rails Oceania" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > > http://groups.google.com/group/rails-oceania?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rails-oceania?hl=en. > > -- http://twitter.com/jpartogi -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
