Skip to content

Commit acf08c1

Browse files
author
Songyu by ComPany
committed
rake文章自动生成脚本增加UTF8编码
1 parent f3efc5f commit acf08c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ task :post do
2020
end
2121

2222
puts "Creating new post: #{filename}"
23-
open(filename, 'w') do |post|
23+
open(filename, 'w:utf-8') do |post|
2424
post.puts "---"
2525
post.puts "layout: post"
2626
post.puts "title: \"#{title.gsub(/-/,' ')}\""

0 commit comments

Comments
 (0)