SomeObject.find(20).client.full_name.downcase.bytes.each{|b| puts b}
- 98 197 130 97 197 188 101 106 101 119 115
=> "błażejewsk" OtherClass.find(36).client.downcase.bytes.each {|b| puts b}
- 98 197 129 97 197 187 101 106 101 119 115
=> "bŁaŻejewsk"
As you can see special characters have different bytes in both string . Both string have Encoding:UTF-8, so force_encoding or something like that , wouldn't help. == returns false. How should I convert those string so I can get true from comparison?