ruby on rails - mongodb unable to create/save double-byte languages -


i have model called review.rb

class movienews::review         include mongoid::document         include mongoid::timestamps         include mongoid::userstamp         include mongoid::search          field :story,   type: string end 

when create instance of class review , tried saving local language telugu in 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 create collection? please me out.

kumar try this

review.story = "నటవర్గం\" after pasting here it's spelling goes worng \"నటవర్.." 

looks breaking both moments when use quotation marks without backslash


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -