*
The moose likes Struts and the fly likes applicationresources.properties with utf-8 characters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "applicationresources.properties with utf-8 characters" Watch "applicationresources.properties with utf-8 characters" New topic
Author

applicationresources.properties with utf-8 characters

Jordan Smith
Ranch Hand

Joined: Apr 06, 2008
Posts: 89
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

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Apr 06, 2008
Posts: 89
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

Joined: Sep 29, 2008
Posts: 12617

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: applicationresources.properties with utf-8 characters
 
Similar Threads
Struts: The Complete Reference - Internationalizaion ???
FTPClient storeFile - uploaded file get wrong encoding
How to make SendRedirect to work without setting URIEncoding="UTF-8" in tomcat server.xml
Save File As UTF-8
NetBeans 4.1 - encoding in Properties editor