Closed pencil closed 11 years ago
Added. And moved it to the valid?
method to fix the error for SHA as well.
Thanks. I'll merge this, but I'm going to make a change to how it's done:
if password.respond_to?(:encode)
password = password.encode("UTF-8")
password.force_encoding("ASCII-8BIT")
end
so that non-UTF8 strings get converted to UTF-8 first. force_encoding updates the string itself, too, so having that copy there means the caller doesn't get their string changed on them.
Thanks again!
Thank you :+1:
Fixes the following error: