Blog 1

Random Talk on Random Thoughts

Testing Octopress and Ruby 2.0 on Windows 7 (2)

| Comments |

Problem

solved problem

Solution

See Octopress issue #413 for details.

Method 1 (@ DrayChou)

Add the following 2 lines in "C:\your\ruby\location\setup_environment.bat"
1
2
set LC_ALL=en_US.UTF-8
set LANG=en_US.UTF-8

I’ve only tested the above two commands in the command prompt, and I’ve never touched setup_environment.bat.

Method 2 (@ robatron)

I now use this method.1 It’s much simpler than the above one—just add/set encoding: UTF-8 in _config.yml.

solved problem


  1. _config.yml at commit f584753

Comments