Created
April 26, 2012 19:21
-
-
Save KitaitiMakoto/2502259 to your computer and use it in GitHub Desktop.
ファイルから読み込む時に自動的にBOMを削除する ref: http://qiita.com/items/2e2d425e439d4b16a279
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
content = open(file, 'r:BOM|UTF-8') {|f| f.read} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment