#602 ✓resolved
dmilith

encoding problem

Reported by dmilith | October 18th, 2008 @ 02:42 AM

I'm using latest 1.0rc merb with dm from gems.
I've generated database.yml with rake, and changed some values.

Issue is that DM is ignoring:

encoding: utf8

entry and it's creating sql_ascii database after

rake db:drop && rake db:create

:encoding: utf8

doesn't work too.

best regards
dmilith

Comments and changes to this ticket

  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) December 12th, 2008 @ 03:32 PM

    • Assigned user changed from “Sam Smoot” to “Dirkjan Bussink”
    • State changed from “new” to “unconfirmed”

    Dirkjan, should it be possible to specify the encoding via an "encoding" parameter passed to the underlying DO driver?

  • Dirkjan Bussink

    Dirkjan Bussink December 13th, 2008 @ 08:36 AM

    On MySQL there is charset, but I like the term encoding better. I could rework it to use ?encoding=utf8 for all DO drivers.

  • Dirkjan Bussink

    Dirkjan Bussink December 13th, 2008 @ 09:44 AM

    • State changed from “unconfirmed” to “hold”

    do_postgres and do_mysql now both support both encoding and charset as a query option to the connection uri.

    We have to make sure these options are properly passed through from for example a database.yml file.

  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) December 13th, 2008 @ 11:22 AM

    Awesome. I'd have no problem either if you standardized on the term "encoding". Simpler interfaces are better: they're easier to test and configuration is likely to be more consistent from one project to the next.

  • Dirkjan Bussink

    Dirkjan Bussink December 28th, 2008 @ 12:21 PM

    • State changed from “hold” to “resolved”

    The options appear to be passed down correctly, this should be working now with the latest DO code.

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 »

People watching this ticket

Pages