rails/rails — pull request #7603 by kennyj (2012-09-11 16:40:30+00:00)
Title: Backported #7572 to 3-2-stable. Use config['encoding'], because database configuration use not charset but encoding.

Related to #7572.

cc/ @rafaelfranca