both windows 10 and centos6.5 use java 1.8.0x131. (the file is compiled with maven on eclipse, uft-8 has been set in maven, and eclipse has been modified to encode the compilation space to utf-8 is still invalid. )
two known errors have occurred (the following windows is referred to as c):
1.w reflection acquisition method when running up (both w and c have successfully obtained the target method after testing), and the execution method returns the correct string while the centos returns null.
when running up 2.windows, call the method obtained by reflection and pass in the string. There is no error on w, and the number of parameters is not correct on c. After testing, both c and w outputs are correct characters.
taken together, I think it"s the jvm default coding problem. But when I add-Dfile.encoding=UTF-8 to w, I just output garbled words but still don"t know what to do. Add-Dfile.encoding=GBK to c also output garbled, but still report the above two errors.
would like to ask you bosses whether there are still some coding settings? Or is it because of other problems