#1072 ✓not-applicable
Ashley Moran

DataMapper PostgreSQL encodings don't work on Heroku

Reported by Ashley Moran | October 2nd, 2009 @ 08:39 AM

We're deploying our app to Heroku. Heroku generates a database.yml file for you, which includes the key "encoding: unicode". The DataObjects PostgreSQL adapter doesn't recognise this, so you can't connect to the database. We fixed it with the following monkeypatch:

module DataObjects
  module Postgres
    module Encoding
      MAP["unicode"] = "UTF8"

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »