1

I'm using JMH on Windows 7. I'm trying to generate average times output. I've tried running the built jar in either a cygwin mintty or a DOS cmd shell. In both cases, it prints out values like "10?? s/op".

I've tried several things to try to fix this. I would also like to see if I could get it to report measurements in terms of milliseconds or microseconds, but I'm not going to bother until I can be sure that it's even reporting real data.

This is most likely a character encoding problem, but I don't understand how to fix it. I tried examining the output with a hex viewer, and those characters really are "?" characters. I've seen one other SO posting with a similar problem (Strange output when using JMH), but the information in that posting and answer didn't help me.

David M. Karr
  • 14,317
  • 20
  • 94
  • 199
  • 1
    Are you sure that the terminal and font you're using support extended Unicode? – syntagma Sep 29 '18 at 19:10
  • Of course I'm not sure. How would I even know? – David M. Karr Sep 29 '18 at 23:13
  • You've linked to an answer that explains the cause of this values. You will find more detailed information on how to fix it [here](https://stackoverflow.com/questions/379240/is-there-a-windows-command-shell-that-will-display-unicode-characters). – syntagma Sep 30 '18 at 07:36
  • Did you ever resolve this? The question you link to did not help me either, since this is more than just a console issue - if I run my jar and direct the output to a file rather than the screen it still renders question marks, regardless of that file's encoding. – skomisa Feb 09 '19 at 05:06

0 Answers0