Skip to content

Commit 85322d8

Browse files
committed
Merge pull request #202 from fabrikagency/master
Read JS files as UTF-8. Fixes #198
2 parents 3dedc9d + 8f1d6eb commit 85322d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/jammit/compressor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def concatenate(paths)
246246

247247
# `File.read`, but in "binary" mode.
248248
def read_binary_file(path)
249-
File.open(path, 'rb') {|f| f.read }
249+
File.open(path, 'rb:UTF-8') {|f| f.read }
250250
end
251251
end
252252

0 commit comments

Comments
 (0)