Permalink
Browse files

Read JS files as UTF-8. Fixes #198

  • Loading branch information...
1 parent 3dedc9d commit 8f1d6eb0e6a7a806153f2ad976557829a8c72c3f Caleb Wright committed Sep 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/jammit/compressor.rb
View
@@ -246,7 +246,7 @@ def concatenate(paths)
# `File.read`, but in "binary" mode.
def read_binary_file(path)
- File.open(path, 'rb') {|f| f.read }
+ File.open(path, 'rb:UTF-8') {|f| f.read }
end
end

0 comments on commit 8f1d6eb

Please sign in to comment.