MySQL data in Cyrillic displayed as question mark


#1

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.

Regards,
Aleksey Chabunin


#2

I have the same problem