I have a string coming from an email body : (rdb:1) body "\r\nLe 3 sept. 2010 \340 19:06, Event Seve Test a \351crit :\r\n\r\n> Please answer the question by writing an X at the chosen places :\r\n> \r\n> are you coming : \r\n> \r\n> YES: X\r\n> \r\n> NO:_\r\n> \r \n> thanks for you answer\r\n> \r\n> the Seve Ballesteros"
when I want to resent this boy in another email, I get an error , stating invalid byte sequence .. sure the \r\n are causing the error (rdb:1) sending_confirmation_email(@origin, @destination, @subject, @message) ArgumentError Exception: invalid byte sequence in UTF-8 should I strip them ? or is there any way to re-encode the string in UTF-8 ??? ( Ruby 1.8.3 and Ruby 1.9.2 ) thanks for your help erwin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.