Anybody knows how to solve that?

Check this:

>> u.lastname
=> "Guimar\303\243es"
>> puts u.lastname
GuimarĂ£es
=> nil
>> u.lastname.titlecase
=> "Guimar\303\243Es"
>> puts u.lastname.titlecase
GuimarĂ£Es   # ------------------> Check the E in capital, this is a bug
=> nil
>> 

-- 
Posted via http://www.ruby-forum.com/.