简体   繁体   中英

Ransack cyrillic (russian) case insensitive search on production

I use field_name_cont . This predicate works fine with Latin charset on production, but it's case sensitive with Cyrillic. On my local machine this works fine with both of them. How to find what is the problem? Thanks!

Postgres encoding on my production was SQL-ASCII. Postgres on my development machine was UTF-8. After Postgres encoding was changed to UTF-8 everything works well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM