Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applicationresources.properties with utf-8 characters

 
Jordan Smith
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I would like to have in my applicationresources.properties utf-8 charcters.
When I write:
login.notRecognized = "נא לנסות שנית"

and try to save (in Eclipse), I get the message
Some characters cannot be mapped using ISO-8859-1

What tag can I add to it? in the JSP file i added:


but what could i add here?

It's a properties file..

Thanks!
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This isn't a Struts issue.

Property files must be processed with the native2ascii tool if they contain special characters. Any Java I18N tutorial will provide details.
 
Jordan Smith
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I tried to look into it..

How do I convert it?

I saw documnetation about the tool, but not explanation of how to use it..
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What else do you need to know?

native2ascii [options] [inputfile [outputfile]]

The only real option is the -encoding option, which depends on your actual encoding.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic