|
Re: ActiveSupport::Multibyte for better Unicode support: msg#00245lang.ruby.rails.core
On 28 Sep 2006, at 21:01 , Julian 'Julik' Tarkhanov wrote: On 28-sep-2006, at 4:00, Michael Glaesemann wrote: You can set the encoding on multiple levels, but you can only set the locale, which defines the collation when you create the 'database cluster'. You can get a list of available locales on your system with locale -a And the locale of the postmaster user plays it's part too. Only if you so not set the local when you create the 'database cluster'. The easiest way that we could find to do UTF-8 with PostgreSQL is to first create the 'database cluster' with: $ initdb --locale=en_GB.UTF-8 -D data_dir ...and then create the databases with something like: $ createdb --encoding=UTF8 db_name And yes, you've read it right, you can only get _one collation type_ for your cluster... Kind regards, Thijs -- Fingertips - http://www.fngtps.com Phone: +31 (0)6 24204845 Skype: tvandervossen MSN Messenger: thijs@xxxxxxxxxx iChat/AOL: t.vandervossen@xxxxxxx Jabber IM: thijs@xxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: resource_feeder feedback, Thijs van der Vossen |
|---|---|
| Next by Date: | Re: bug in routes ???, Greg Hauptmann |
| Previous by Thread: | Re: ActiveSupport::Multibyte for better Unicode support, Julian 'Julik' Tarkhanov |
| Next by Thread: | Re: ActiveSupport::Multibyte for better Unicode support, Michael Glaesemann |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |