On 14 December 2010 16:22, Bob Mundane <lists@ruby-forum.com> wrote:
> 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.
Strange, I get:
$ rails console
Loading development environment (Rails 3.0.3)
ruby-1.9.2-p0 > "Café Noir ".strip
=> "Café Noir"
ruby-1.9.2-p0 > "Café ".strip
=> "Café"
Which Ruby are you using?
Colin
--
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