Encoding issues with '±' on Windows

Matt Warren matt.warren at live.co.uk
Thu Dec 18 12:53:14 UTC 2014


Hi

When I run any JMH Benchmark within the Windows Console, the '±' is
replaced with a '▒'. This makes the benchmarks a bit confusing when you
first run them as '±' is used quite a bit.

I've written up a gist[1] that shows the problem, it's based on
a StackOverflow answer[2]. The problem is due to default encodings and
there seems to be a fix/workaround.

I don't know if Windows is a priority or not, but it would be nice of OOTB
the JHM results were a bit more readable?

Cheers

Matt

[1] https://gist.github.com/mattwarren/b560a8e1de010cfdac00
[2]
http://stackoverflow.com/questions/4005378/console-writeline-and-system-out-println/4005717#4005717


More information about the jmh-dev mailing list