stefanbirkner / system-rules

A collection of JUnit rules for testing code which uses java.lang.System.
http://stefanbirkner.github.io/system-rules
Other
547 stars 71 forks source link

The "new PrintStream(log)" use system default encoding, then it makes en... #2

Closed TeeTee closed 12 years ago

TeeTee commented 12 years ago

...coding problem on Windows.

you should specify UTF-8 explicitly. you can use 'new PrintStream(log, false, "UTF-8")', to fix it.

TeeTee commented 12 years ago

Please merge this into master.

TeeTee commented 12 years ago

Please merge this into master.