I have the following in my en.yml file date_time_key: "yyyy mm dd hh:mm utc +-hmm" I would like to have the spaces in ''yyyy mm dd'' and ''utc +-hmm'' replaced with a non-breaking character unicode <U+00A0>. How is this done, or is it even possible in Ruby-1.8.7? The wiki pages and discussions that I have managed to find do not seem to address this sort of thing directly. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
James Byrne
2011-Mar-04 20:08 UTC
Re: Howto enter nonbreaking spaces in I18n translarion file
Solved it: UTF-8 nonbreaking space = "\xC2\xA0" so date_time_key: "yyyy\xC2\xA0mm\xC2\xA0dd hh:mm\xC2\xA0+-hmm" -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.