jQuery in Action, 2nd edition*
The moose likes Tomcat and the fly likes how to add -Dfile.encoding=UTF-8 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "how to add -Dfile.encoding=UTF-8" Watch "how to add -Dfile.encoding=UTF-8" New topic
Author

how to add -Dfile.encoding=UTF-8

Irakli Bliadze
Greenhorn

Joined: Dec 09, 2011
Posts: 17
anybody knows how to add -Dfile.encoding=UTF-8 to tomcat catalina.bat or service.bat and exactly where i should to add it
to know tomcat uft characters
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16160
    
  21

What do you expect to gain from that? Tomcat itself doesn't require it, and the webapps are expected to manage their own encoding.


Customer surveys are for companies who didn't pay proper attention to begin with.
Irakli Bliadze
Greenhorn

Joined: Dec 09, 2011
Posts: 17
thanks for answer, you are right, i wanted to set utf-8 encodig to my servlet attachment file name and i did this like this:
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how to add -Dfile.encoding=UTF-8