MySQL data in Cyrillic displayed as question mark

I hope it is a simple question. Cyrillic (cp1251) text retrieved from
MySQL is displayed as question marks in Rails. Even worse, if you
update the database from the application, the Cyrillic text is
replaced with question marks too.

The local MySQL Administrator tool has no problem with displaying
cyrillic in the database. That is why my guess that ActiveRecord, or
whatever it is, incorrectly reads data from the DB. Normally I would
expect that you configure the codepage for the application, but I cannot
find anything like that in Rails.

Can someone help me out here?

Thank you in advance.

Aleksey Chabunin

I have the same problem

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs