Reader properties file with latin characters

I have a properties file with latin characters. When I read this properties file through spring using @resource, my map gets populated, but only with the last character, which is not in the correct format. Please let me know the reason for this and how can I fix it?

รก=a
รฉ=e

      

in the properties file as above.

+3


source to share


1 answer


Java uses Unicode to define non-ASCI characters, so you will need to replace them with the Unicode equivalent for text or HTML



char|  code  | HTML
----+--------+-------
 รก  | \u00E1 | á
 รฉ  | \u00E9 | é

      

+2


source







All Articles