lib/sportdb/utils.rb in sportdb-0.9.0 vs lib/sportdb/utils.rb in sportdb-0.9.1
- old
+ new
@@ -15,5 +15,17 @@
ActiveSupport::TimeZone['Mexico City'].parse( str )
end
end # class Time
+
+class File
+ def self.read_utf8( path )
+ open( path, 'r:bom|utf-8' ) do |file|
+ file.read
+ end
+ end
+end # class File
+
+
+
+