When I run the java code I can print 'Sinhala' Unicode using java slf4j logger. But when I run java program on local tomcat server, I cannot print Sinhala Unicode correctly. I tried various ways using UTF-8 decoding. But I'm still struggling with this problem.
As an example.
String word = "වැළදීම";
logger.info(word);
Output of simple java program: වැළදීම
Output when local tomcat up: ව�ළදීම
I added UTF-8 encoding to the catalina.bat file. But the problem is still in the code. If anyone knows the answer. Please help me.