On Thursday, 9 July 2015 04:47:00 UTC-4, Kiran Kumar wrote: > > I have a Model called *Review.rb* > > class MovieNews::Review > include Mongoid::Document > include Mongoid::Timestamps > include Mongoid::Userstamp > include Mongoid::Search > > field :story, type: Stringend > > > When i create a instance of class review and tried saving which local > language telugu in the field, im getting wrong output. > > Ex1: > > review = MovieNews::Review.new > review.story = "నటవర్గం" after pasting here it's spelling goes worng "నటవర్.." > review.save => true > > Does Mongodb supports local languages to create collection? Someone please > help me out. > > As Fred has indicated, is the issue that the string appears incorrectly in the terminal / editor, or that it is saved incorrectly to the database? I was able to produce a string that looks (to my thoroughly-unfamiliar-with-Telegu-script eyes) like your "spelling goes wrong" example by replacing the last six bytes of the string with two literal periods (codepoint U+2E).
--Matt Jones -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f9c5665f-c59d-488a-8e67-2582520fbd8c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.