Quantcast
Viewing latest article 7
Browse Latest Browse All 1022

Java .properties file not support Turkish Character Value

I want to give Turkish character as a value in my .properties file. But outcome not shown well

I put into properties file

myvalue=BİLGEHANOutcome B?LGEHAN

I found some solutions in stackoverflow. But I want to clarify

I tried to add properties file encoding try both of them UTF-8 and ISO-8859-1 not working

@PropertySource(    value = {"my.properties"},    encoding = "UTF-8")

I set -Dfile.encoding=UTF-8 it is not working native2ascii conversion work

Only thing I can do I use native2ascii and convert my value to ascii format and then my message shows well

I want to clarify is there any way to use my special characters in properties file or is this only way to do convert ascii and use it?

UTF-8 encoding of application.properties attributes in Spring-Boot


Viewing latest article 7
Browse Latest Browse All 1022

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>