Ruby on Rails Tuesday, December 14, 2010

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 ?

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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment