How to store other languages in mysql database using ruby? -


i want store languages other english in mysql database using ruby. i've tried store hindi language characters in mysql database, got activerecord::statementinvalid error. here attached screenshot -

error screenshot

please me solve problem. in advance.

you run following command on desired table(s):

alter table <table_name> convert character set utf8 collate utf8_unicode_ci; 

mysql docs on collation , character set configuration.

hope helps!


Comments

Popular posts from this blog

javascript - Create websocket without connecting -

how to do line continuation in perl debugger for entering raw multi-line text (EOT)? -

android - Linear layout children not scrolling -