UTF-8 String.strip bug (and several over methods)

Bob Mundane
2010-12-14T16:22:56Z

Hello, with Rails 3.0.3

"Café Noir ".strip => "Café noir"
but
"Café ".strip => "Caf\303\251"

In fact, strip() doesn''t works if the last printable character is
accentuated.
Surprisingly " écologie".strip works fine.

I''ve tried to dig deeper in active_support multibyte source code but
didn''t found any solution.


Any help ?