Unicode support in rails. Quickly.

  1. Create the database with Unicode support. In MySQL, for example, it would be something like this:
    create table onon_development character set utf8;
  2. Add a meta tag to your template. It can be like this one:<meta http-equiv="content-type" content="text/html; charset="UTF-8"></meta>
  3. Everytime you wanna do Unicode-friendly operations, use the method chars of the String class, instead of using it directly.
  4. Done!