Forum: Ruby on Rails MySQL data in Cyrillic displayed as question mark

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Aleksey (Guest)
on 2006-04-09 05:04
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
Anonymous (Guest)
on 2006-04-27 02:51
(Received via mailing list)
I have the same problem
This topic is locked and can not be replied to.