Mahesh More
Mahesh More

Reputation: 929

Reader properties file with latin characters

I have a properties file with latin characters in it. When i read this properties file through spring using @resource my map is getting is populated but only with last character that to not in proper format. Please can you let me know the reason for this and how it could be fixed?

á=a
é=e

entries in properties file as above.

Upvotes: 3

Views: 238

Answers (1)

MaxZoom
MaxZoom

Reputation: 7743

Java uses Unicode to define non-ASCI characters, thus you will need to replace them with Unicode equivalent for Text or HTML code:

char|  code  | HTML
----+--------+-------
 á  | \u00E1 | á
 é  | \u00E9 | é

Upvotes: 2

Related Questions