I have an app that uses Cyrillic (Macedonian) alphabet. I have an alphabet menu with all of the letters (manually typed as an array which I'm calling it from a helper), that links to items where the first character is that letter. So, it seems that "К" and "Ќ" (also "Г" and "Ѓ") are listing the same items, as if they were using the same letter. Works great in development, not sure why it does this on production. I have set UTF-8 encoding on production database.
Here's the prod log. It's not getting the same character.
App 18197 stderr: Started GET "/letterfilter?title=%D0%8C" for IP at2015-07-30 12:03:46 -0400
App 18197 stderr: Processing by PostsController#letterfilter as HTML
App 18197 stderr: Parameters: {"title"=>"Ќ"}
App 18197 stderr: Rendered posts/letterfilter.html.haml within layouts/application (4.3ms)
App 18197 stderr: Rendered posts/_search.html.haml (0.8ms)
App 18197 stderr: Rendered shared/_header.html.haml (9.6ms)
App 18197 stderr: Rendered shared/_footer.html.haml (0.2ms)
App 18197 stderr: Completed 200 OK in 18ms (Views: 16.6ms | ActiveRecord: 0.2ms)
App 18197 stderr: Started GET "/letterfilter?title=%D0%9A" for IP at 2015-07-30 12:03:51 -0400
App 18197 stderr: Processing by PostsController#letterfilter as HTML
App 18197 stderr: Parameters: {"title"=>"К"}
App 18197 stderr: Rendered posts/letterfilter.html.haml within layouts/application (4.9ms)
App 18197 stderr: Rendered posts/_search.html.haml (0.7ms)
App 18197 stderr: Rendered shared/_header.html.haml (7.7ms)
App 18197 stderr: Rendered shared/_footer.html.haml (0.2ms)
App 18197 stderr: Completed 200 OK in 17ms (Views: 14.2ms | ActiveRecord: 0.9ms)
What might be causing this issue? Should I update my database encoding to utf8mb4?
Any help is welcomed. Thanks.