Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9244075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:56:29+00:00 2026-06-18T08:56:29+00:00

I am developing a rails app which has its content in Turkish. I am

  • 0

I am developing a rails app which has its content in Turkish. I am using Postgresql 9.2.2 as my database backend. Everything works fine (no weird character issues etc. ) except for proper ordering.

For example, when I try to list some items that are ordered by city they are in, I expect something like “Adana, Bursa, İstanbul, Giresun, Zonguldak ..”.

Instead, I always get Turkish specific characters at the end/beginning of the list. (i.e.”Adana, Bursa, Giresun, Zonguldak, İstanbul”)

I have initialized my postgres db with command: initdb /usr/local/var/postgres -E utf8 --locale=tr_TR

when I \l in psql console I get the expected.

 Name              Owner         Encoding   Collate   Ctype
 ----------------+-------------+----------+---------+-------+ 
 app_development | app         | UTF8     | tr_TR   | tr_TR |
 app_production  | app         | UTF8     | tr_TR   | tr_TR |
 app_test        | app         | UTF8     | tr_TR   | tr_TR |
 postgres        | monkegjinni | UTF8     | tr_TR   | tr_TR |

I also tried to create databases manually with LC_CTYPE="tr_TR.UTF-8" and LC_COLLATE="tr_TR.UTF-8", and again no progress.

Some information about my development environment:

  • Running Mountain Lion 10.8.2 with Macbook Pro 7.1

  • psql --version : 9.2.2

  • rails --version : 3.2.11

$ locale :

  • LANG=”tr_TR.UTF-8″
  • LC_COLLATE=”tr_TR.UTF-8″
  • LC_CTYPE=”tr_TR.UTF-8″
  • LC_MESSAGES=”tr_TR.UTF-8″
  • LC_MONETARY=”tr_TR.UTF-8″
  • LC_NUMERIC=”tr_TR.UTF-8″
  • LC_TIME=”tr_TR.UTF-8″
  • LC_ALL=

How can I resolve this issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:56:30+00:00Added an answer on June 18, 2026 at 8:56 am

    UTF-8 locales on OS X are broken. You can try to use a non-UTF-8 locale (tr_TR.ISO8859-9), but it appears that it is also broken in this respect. So it’s not going to work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a Rails app which should rely on existing database. There are
I'm developing an master rails app which controls other rails apps. It has a
I'm developing rails app and everything was working fine, but now it started bugging.
I am developing an app with rails 3 using delayed_jobs. I'm using Hirefire to
I am developing a web app (using rails) that I will be launching within
I am developing a Rails v2.3 app. with MySQL v5.1 database on a Ubuntu
I am developing 1 app in rails 3 with MongoDB (MongoMapper)in which I need
So Im developing a Rails app- primarily serves API which I want to lock
I'm developing a Rails 3 app deployed on Heroku which would like to optimize.
Going nuts here. I'm developing a rails app, and I'm using the twitter-bootstrap-rails gem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.