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

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -