Permalink
Browse files

Merge pull request #1431 from Haacked/windows-code-page-fix

Set the codepage to 65001 before generating
  • Loading branch information...
2 parents 8f51bdc + 3477eaf commit fe6ef744ede363688e8538ac091519e00c30487c @imathis committed Jan 30, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 Rakefile
View
@@ -27,6 +27,10 @@ new_post_ext = "markdown" # default new post file extension when using the n
new_page_ext = "markdown" # default new page file extension when using the new_page task
server_port = "4000" # port for preview server eg. localhost:4000
+if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
+ puts '## Set the codepage to 65001 for Windows machines'
+ `chcp 65001`
+end
desc "Initial setup for Octopress: copies the default theme into the path of Jekyll's generator. Rake install defaults to rake install[classic] to install a different theme run rake install[some_theme_name]"
task :install, :theme do |t, args|

0 comments on commit fe6ef74

Please sign in to comment.