I got a very strange problem here.
I need to read data from SQL Server (ver. 2016). A name like O'Neal
.
When I load the String in my IDE/TextEditor, O'Neal
could be read correctly as O'Neal
.
But when I package my program as jar or war file, O'Neal
is loaded like this O��Neal
.
I have no idea how does this happend. Any suggestion would be appreciated. Thanks.