|
Re: ActiveSupport::Multibyte for better Unicode support: msg#00168lang.ruby.rails.core
> - Make sure your database character set is utf8 > - Make sure all your tables have a character set of utf8 > - Make sure your database.yml has 'encoding: utf8' set for each database None of these steps are required officially unless you use utf-8 specific features of the database (collation). The last setting seems to set the connection encoding, which shouldn't be required unless there is non-utf8 data stored in the database. > - Put $KCODE='u' in your environment.rb This is only required if you use unicode strings in your Ruby code. - Add an after_filter to application.rb to set the Content-Type header correctly Rails now defaults to utf-8 Content-Type. Joshua Sierles --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/rubyonrails-core -~----------~----~----~----~------~----~------~--~---
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: ActiveSupport::Multibyte for better Unicode support, Thijs van der Vossen |
|---|---|
| Next by Date: | Re: ActiveSupport::Multibyte for better Unicode support, Thijs van der Vossen |
| Previous by Thread: | Re: ActiveSupport::Multibyte for better Unicode support, Pete Yandell |
| Next by Thread: | Re: ActiveSupport::Multibyte for better Unicode support, Pete Yandell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |