mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-28 12:45:36 +08:00
specify the encoding because UTF-8 characters may be contained in reference
If use Ruby19, it will not handle correctly.
This commit is contained in:
@@ -173,6 +173,7 @@ class DocsetGenerator
|
||||
|
||||
@input_paths.map { |path| parse_html_data(File.read(path)) }.compact.each_with_index do |code, n|
|
||||
File.open(File.join(@rb_files_dir, "t#{n}.rb"), 'w') do |io|
|
||||
io.puts "# -*- coding: utf-8 -*-"
|
||||
io.write(code)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user