Permalink
Browse files

Merge pull request #202 from fabrikagency/master

Read JS files as UTF-8. Fixes #198
  • Loading branch information...
jashkenas committed Sep 6, 2011
2 parents 3dedc9d + 8f1d6eb commit 85322d8c36ecf1d05e3e2a316913c59bae1a82f1
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 85322d8

Please sign in to comment.