I work with ruby on rails and want to save in mongodb data with Hebrew characters.
How can I do this?
thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
MongoDB supports UTF-8 out of the box, which means you simply have to encode your strings into UTF-8. Here’s a few links you can peruse:
MongoDB & I18n strings
I18n and rails railscast
and finally,
Encoding strings in Ruby 1.9