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 Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 17149
    
  27

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


An IDE is no substitute for an Intelligent Developer.
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:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to add -Dfile.encoding=UTF-8
 
jQuery in Action, 3rd edition