Hi, I have some seed data in MySql which contains non-ASCII characters (as you'd imagine as these are worldwide placenames that I'm storing). In MySql on the command line they look great, they're all formatted perfectly, including Arabic and Chinese characters and they look great.
However, when I ask my Rails model for one of these fields, and render that in the browser, all the lovely work is undone, and I get garbage character spew. E.g.: In the commandline, mySQL: "Чанчунь,长春" (Good!) In the browser: "K’ua-ch’eng-tzu,Чанчунь,长春" (Bad!!) So clearly this is an encoding issue, here's my setup: Table created via migration with ":options => "DEFAULT CHARSET=utf8"" Database.yml contains "encoding: utf8" HTML is served with the meta tag containing "charset=utf-8" If I puts directly to the command line in the controller, I get the same (bad) spew, so I don't think it's the browser screwing up. All I'm doing to fetch the string is something like "@name = City.first.name" Any ideas? Thanks! -Nex -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

