broken UTF-8 String ruby
        Posted  
        
            by josh
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by josh
        
        
        
        Published on 2010-05-24T13:46:00Z
        Indexed on 
            2010/05/24
            14:01 UTC
        
        
        Read the original article
        Hit count: 197
        
ruby
While reading a file I get broken UTF-8 String error whenever I have the following in my file
través
if I change it to normal e then it works. 
Whats the way to fix this?
error only happens if I do line.lstrp or any other function.  Just printing the lines is ok.
problem even happens when I try to match the string with regex.
© Stack Overflow or respective owner