encoding problem in Param
Martijn Hoekstra
martijnhoekstra at gmail.com
Fri Mar 3 12:32:33 UTC 2017
I'm using sbt-jmh, and I have a benchmark where the encoding of the source
file is not the same as my platform encoding. From the results I'm getting,
I have the idea that I'm not passing the correct configuration options to
JMH to correctly deal with the encoding.
The problem manifests here:
https://github.com/martijnhoekstra/numparsers/blob/master/src/main/scala/ValidShortBenchmarks.scala#L17
That weird looking 1 is a full width 1, +uFF11. The source file is UTF8 and
my platform default encoding is cp1252.
The maintainer of sbt-jmh suggested I'd ask here.
How should I let JMH know what encoding to use?
I also asked (a variation of) this question on Stackoverflow as
http://stackoverflow.com/questions/42576773/param-value-encoding
More information about the jmh-dev
mailing list