开发者

Can I save in mongodb Hebrew characters?

开发者 https://www.devze.com 2023-04-10 11:48 出处:网络
I work with ruby on rai开发者_JAVA百科ls andwant to save in mongodb data with Hebrew characters.

I work with ruby on rai开发者_JAVA百科ls and want to save in mongodb data with Hebrew characters. How can I do this?

thanks,


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

0

精彩评论

暂无评论...
验证码 换一张
取 消