I've a problem with charset encoding/decoding in my web application in rails 4. i see word like "rappresentò" or "è" in my webpage but i want to see "rappresentò" and "è".
this is my stack structure :
Server Os : Ubuntu 14.04, mysql database : "foo" , table :"bar"
table description : |description | mediumtext | latin1_swedish_ci | YES |....
this is my database config in rails
default: &default adapter: mysql2 encoding: latin1 pool: 5 username: root password: **** socket: ....
in rails view
meta-charset is "ISO-8859-1"
Note: - i reflected the problem only on the server machine - when i connect to the database via ssh i saw the characters correctly
This is my output in rails console:
Bar.find(38).description
Il volume è arricchito dalle illustrazioni di Jean-Jacques Sempé. "