Skip to content

Commit a6a9e98

Browse files
author
David Heinemeier Hansson
committed
Force encoding
1 parent 8036cdd commit a6a9e98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/importmap/packager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def download_package_file(package, url)
116116

117117
def save_vendored_package(package, source)
118118
File.open(vendored_package_path(package), "w+") do |vendored_package|
119-
vendored_package.write remove_sourcemap_comment_from(source)
119+
vendored_package.write remove_sourcemap_comment_from(source).force_encoding("UTF-8")
120120
end
121121
end
122122

0 commit comments

Comments
 (0)