Create a gist now

Instantly share code, notes, and snippets.

@hoffm /gist:5207153
Last active Dec 15, 2015

1.9.3-p385 :020 > title = Recipe.find(12934).title
 => "The River Café's Strawberry Sorbet" 
1.9.3-p385 :021 > title.encode('ISO-8859-1', 'utf-8')
 => "The River Caf\xC3\xA9's Strawberry Sorbet" 
1.9.3-p385 :022 > puts _
The River Café's Strawberry Sorbet
 => nil 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment