• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with fmt  RSS feed

 
geeta lalchandani
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have properties files. Want to use the properties in the javascript alerts.
Now, when i type chinese characters in the propeties file,and rebuild. The properties in the classses display '???'.

I use WSAD. Is ths the problem wth the rebuild in WSAD? or there are some setiings to prevent this.

Initially i thought it was something like 'escapeXML' in <c ut />, but it turned to be an altogether different problem.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the JSP forum where the JSTL gurus hang out.
 
pawank gupta
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u have to use internationalization for that use Locale and resource bundle classes for that
 
Stefan Evans
Bartender
Posts: 1836
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have chinese characters in your properties file?
Try running it through the native2ascii tool (comes standard with java) to convert it from whatever character set you are using for the properties file, into standard unicode escape characters.

For instance if your properties file is in UTF-8
native2ascii -encoding UTF8 oldFile.properties newFile.properties
http://java.sun.com/j2se/1.5.0/docs/tooldocs/index.html#intl

Hope this helps,
evnafets
 
geeta lalchandani
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in that case, the fmt would not work without the properties conversion. I also tried to create a txt file with proper encodings.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!