On May 21, 12:29 am, comopasta Gr <[email protected]> wrote: > Hi, > > Creating a new Rails application with -d postgresql sets the encoding in > the database.yml to unicode > > Creating a new Rails with -d mysql sets the encoding to utf8 >
According to http://www.postgresql.org/docs/8.4/static/multibyte.html Unicode as an encoding name is just an alias for UTF8. Earlier versions only list Unicode as the name of that encoding, so I assuming this means that setting the name unicode ensures that a range of postgresql versions will use UTF8 (or perhaps the database.yml template hasn't been updated from the time where the only name for UTF8 was Unicode) Fred Fred > Any ideas why this difference? > > I've been having problems with encoding due to localization, accents, > json and what no. I thought I was using utf8 and not unicode. Would this > have any impact? > > If this would be an issue? What to take into account when doing a change > of that type on a production DB? > > Thanks. > > -- > Posted viahttp://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

