shell 文件 插入行

Posted by wxianfeng Sun, 10 Jul 2011 22:44:00 GMT

一个rails2.x 的项目,需要迁移到rails3.x , ruby 1.9.2的编码问题,需要在rb文件头添加指定编码, 常见指定方式如下:

# -*- coding: utf-8 -*-
# -*- encoding: utf-8 -*-


This entry was posted on Sun, 10 Jul 2011 22:44:00 GMT and Posted in . You can follow any any response to this entry through the Atom feed. You can leave a comment or a trackback from your own site.

Tags , ,


Use the following link to trackback from your own site:


  1. Avatar
    tony {{count}} days ago:


  2. Avatar
    nomaka {{count}} days ago:

    shell 各种 方便

  3. Avatar
    wxianfeng {{count}} days ago:

    Linode 512M

Leave a comment